« All Events
6 PM – Python Game Development – Sebastian
November 28, 2023 @ 6:00 pm - 7:00 pm
Today We Did
- Developed algorithm to create tubes based on timer (both downwards and upwards
- Used math to find correct position of sprites to remove them when they go off of the screen
- Began creating Coin class
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/tue-6-pm-dragon-birdie/-/tree/TUE-6PM-Sebastian - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Inside coin.py, in our Coin class, in next_costume, follow the pseudocode to complete our method:
decrement flip timer
if flip timer reaches 0:
reset to original value
increment "chosen image index"
if the chosen image index becomes <= than the size of our list of coin images:
reset chosen image index (to 0)
return the image (inside coin_images) at "chosen image index"