![]() If ANIM_RATE = 3, for example, switch to the next image after 3 act steps. Instead of hardcoding the animation rate, add a global variable to FlappyBird called ANIM_RATE, and use it to control the animation speed. Use setImage() to set the image of Flappy Bird. Base the image used on the animation counter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |