« All Events
12 PM – Android Game Development – Gamas
October 22, 2022 @ 12:00 pm - 1:00 pm
Today We Did
- We made Player flaps wing animation.
- We started creating Bird sprite.
- We created FlyingCreature class and made this parent of both classes.
Homework
- Create 2 constants in Config.java: BIRD_MIN_SPEED, BIRD_MAX_SPEED.
- In Bird.java constructor, generate a random number between BIRD_MIN_SPEED and BIRD_MAX_SPEED to be used as the bird speed.
- Display one bird in the screen starting from the right side of the screen moving left.
- Periodically create one random bird per second. Hint, you need to use timer.