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-knig...
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:
/ discord
Auf dieser Seite können Sie das Online-Video Projectiles and Enemy Behavior in Pygame! | Python Game Development Tutorial #3 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer danqzq 02 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7,000 Mal angesehen und es wurde von 109 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!