2015.02.16 – Fighting With Sprites

It was another beautiful, sunny day but it was kind of windy. I stayed inside and worked on getting a star icon to toggle back and forth from gold to grey. I got it to work using two image files, CSS and jQuery. I still don’t quite understand it all but it works. I wanted to try getting it work with a sprite though. A sprite is a single image file with multiple image objects. Only a certain portion of the image file is revealed at any given time. I understand the concept and think I understand how to configure things but it doesn’t work. Frustrating!

We also watched the sixth Harry Potter movie but I kept falling asleep. After the movie I started working on dinner. We had chick’n pot pie patties, mashed potatoes, gravy, sauteed asparagus and mushrooms, salad and bread. Alice and Jason joined us. It was SO good! I tried not to eat too much though because I made some chocolate rice pudding for dessert.

After dinner I asked Andrew if he would look at my code for the sprite. He looked for 2.5 seconds and asked why I didn’t have a comma at the end of a particular line. Uh, I dunno. I added the comma and BAM! It worked. Gah! I should have bothered him sooner because I would never have figured that one out on my own. Now I’m going to find a better sprite file to use and mess with that. What a relief to have it working.

Today I learned how to make my sprite work. Sweet!