This tutorial series is intended to teach the basics of Pygame, where we will be making a top-down shooter game!
The code is also available on GitHub: https://github.com/danqzq/baller-knight/tree/tutorial3
Pygame Docs: https://www.pygame.org/docs/
Timestamps:
00:00 - Intro
00:30 - Making sure the player doesn't leave the screen
02:36 - Adding the 'get_center()' method to the Object class
03:11 - Creating a target that will follow our mouse
05:37 - Implementing shooting
08:48 - Making sure the bullets don't travel infinitely
10:00 - Creating the Enemy class
15:30 - Handling collisions
19:46 - Outro
Some things recommended to have before starting the tutorial:
You must have knowledge in:
- Basics of Python
- Understanding of object-oriented programming
You must have installed:
- A code editor (VS Code, Visual Studio, PyCharm and etc.)
NOTE: I will be using Python v3.9.7 and pygame v2.1.2
throughout this tutorial series!
If you're interested in more content like this, be sure to subscribe.
If you want to be a part of my community, you can join my Discord server too:
https://discord.gg/czBymkcFZ9
Download
0 formats
No download links available.
Projectiles and Enemy Behavior in Pygame! | Python Game Development Tutorial #3 | NatokHD