In this Python tutorial I will show you how to create a pool game using the python and pymunk modules.
The code for the game is built from scratch and will cover setting up the pymunk space, adding game balls and setting up the pool table and adding mouse aiming.
Most importantly, in this video I don’t code any of the physics, instead I use the pymunk module to simulate all of the collisions and physics for me.
Code and assets for this video https://github.com/russs123/pool_tuto...
Credits for assets used: https://opengameart.org/content/8-bal...
Check out my other PyGame tutorials:
2 Player Fighting Game: • Street Fighter Style Fighting Game in Pyth...
Flappy Bird coding tutorial: • PyGame Flappy Bird Beginner Tutorial in Py...
Timestamps:
0:00 Intro
0:30 Pymunk demos
2:15 Initial Game Setup
4:35 Introducing pymunk
19:52 Pool Table setup
28:15 Create pool balls
41:13 Mouse aiming
1:14:17 Detect potted ball
1:35:00 Game over conditions
Auf dieser Seite können Sie das Online-Video Making a Pool Game in Python the EASY way - Beginner PyMunk Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coding With Russ 09 Oktober 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 37,440 Mal angesehen und es wurde von 881 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!