- This event has passed.
9 AM – Android Game Development With Java
December 11, 2021 @ 9:00 am - 10:00 am
Homework
- We want to make the red dragon (Player.java) have flapping wing animation.
- If you still have copy of the codes from your Python Game Development class, look into that to see how to do.wing flapping animation for doing this.
- Inside Player.java, you need to have List<Bitmap> images.
- Inside Player constructor, you need to load all player1, player2, player3 and player4 images and then add them into List<Bitmap> images.
- You need to have a new class attribute: int imageIndex = 0; You need this to control which image from the List<Bitmap> images that you want to display at any given point.
- Inside the Player.draw(Canvas) method you have to use the List<Bitmap> images and get one image at a time according to imageIndex and draw the image.