- This event has passed.
1 PM – Python Game Development
December 18, 2021 @ 1:00 pm - 2:00 pm
Today
- We went over the homework to add the turret sprite.
- We created a MAP config inside the config.py file.
- We made the MAP have the correct size, 28 columns and 20 rows so it can “cover” the entire screen.
- As always, you can check out the code on my branch here.
Homework
- Customize your map to make it interesting. You could create a maze pattern or whatever you want.
- Add a Bullet sprite using the “Bullet.png” filename. Get a bullet to appear on the screen by creating a Bullet sprite. The bullet should move to the right, you can reference what we did in the Birdie game, it’s similar to the fireball.
- When use presses the mouse button, shoot a bullet by creating a new bullet and adding it to the bullet group.
- Make the bullet get created from the position of the tank.