Today we did:
- We started DragonBirdie.
Homework:
- In the Bird class, in the constructor, load a bird image’s path using pygame.image.load and store it in a new attribute called self.image. Transform it with (100, 70).
- In the update function, blit the the self.image with the self.x and self.y.
- In the main.py, since we already blit in the update function, there is no need to blit the self.bird3 again here, and you just need to call the update function.
- The result should be a bird that is moving to the right.
If you have any questions, feel free to email me at joel@ayclogic.com.