« All Events
7 PM – Python Game Development – Sebastian
November 6, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Created logic for player, tube, and coin collisions
- Added modes to player for flying & dizzy
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/MON-7PM-FlappyBird/-/tree/Sebastian?ref_type=heads - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Complete the player_coin_collision method we made in class
- Check if player collided with coin, if it did then:
- Play coin sound effect
- Make score go up by 1
- There are 2 other (very short) lines of code that this method needs, try to figure them out based on the other collision method!
- Recall that the code we cloned doesn’t have the actual sound effects that we need to use, you can download them, then save them to a folder called “audio” inside of the “assets” folder. Link with audio files: https://drive.google.com/drive/folders/1qwPkQd6gop7wSgyoztWkETUf8E-1YPqv?usp=sharing