Friday’s work

Didn’t do much Wednesday and Thursday, i wrote a .txt with the coordinates for the animated sprites but i didn’t feel that merited a blog post. 

Today i started my work on getting animations for the Turtles and the player, Getting the regular looping animation for the turtles was easy but switching between different animations for when they dove proved harder, i decided to ask for help during the class in the afternoon and went on to work with the player. Here the issue was that i could think of several ways to organize the sprites and to play them up. The easiest way would be to send in eight sprites when creating the PlayerObject but i figured there must be a prettier solution. I decided to do an animated sprite that wouldn’t cycle between animations except during certain events, to do this i created a method for swapping between frames in the AnimatedSprite object but i didn’t quite get it working before the day was over. However, Jerry showed me how to get my first idea working using iterators to access the different individual sprites in the list included in the AnimatedSprite.

I will get this done during the weekend. (Especially since i wrote it down here.)