- This event has passed.
10 AM – Indo – Python Game Development – Joel
October 28 @ 10:00 am - 11:00 am
Today we did:
- Created a new file and class for Player, and did the animation for player using the 4 images available. Player has its own flap timer, and in the update function, we made sure that we can control the player using the w and a keys.In the bird class, we made sure that if the bird was going to the left, then we would flip the image to make it look nicer.
In the main, we created a player, and made a new player_group (GroupSingle), added the player inside, and called the update function.
- Make sure that the user can control the player using the ‘S’ and ‘D’ keys as well.