« All Events
8 PM – Python Game Dev – Gamas
June 21 @ 8:00 pm - 9:30 pm
Today We Did
- We learned about Pygame
- We learned how to display the image in the screen
- We learned how to resize the image in Pygame
- We learned how to create a sprite in Pygame
Homework
- First homework
- Change Bird class to randomize the bird01_A.png, bird02_A.png, bird03_A.png and bird04_A.png
- 2nd Homework
- Create player.py and inside the file, create Player class. This should be very similar to Bird class.
- load the assets/player-1.png, resize the player image to 72 by 50.
- Make the player move from left to right.
- Similar to how you display Bird image on the screen, you have to create a new pygame.sprite.Group.