Pygame Tutorial 5 - Game Boundaries

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=_FpkqIkeKUY



Duration: 0:00
207 views
10


pygame tutorial. In the previous two videos, we went over how to draw images and move the player around by responding to keyboard key presses.
When moving the player around, it is possible that the player will move past the boundaries of our game window. The player would still exist but just not be visible since the x and y positions have gone off the game window boundaries. In this video we add checks to prevent the player from moving past the edges of the game window.

How to install Python for VS Code:    • How to set up Python on Visual Studio...  

How to install Pygame:    • How to Install Pygame  

Pygame Tutorial Playlist:    • Pygame Python Game Programming Tutorial  

Github for Pygame Tutorial Code: https://github.com/ImKennyYip/pygame

Python Object Oriented Programming Playlist:    • Python Object Oriented Programming  

Python Game Projects Tutorial Playlist:    • Python Game Programming Tutorial  

Pygame Website: https://www.pygame.org/