American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Android Game Development With Java

December 11, 2021 @ 9:00 am - 10:00 am

Homework
  1. We want to make the red dragon (Player.java) have flapping wing animation.
  2. 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.
  3. Inside Player.java, you need to have List<Bitmap> images.
  4. Inside Player constructor, you need to load all player1, player2, player3 and player4 images and then add them into List<Bitmap> images.
  5. 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.
  6. 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.

Details

Date:
December 11, 2021
Time:
9:00 am - 10:00 am
Event Categories:
,