Pygame Tutorial 3 - Keyboard Input

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



Duration: 0:00
359 views
13


pygame tutorial. In this video, we go over how to process key inputs in two different ways. Depending on the key pressed, we move the player up down left or right by changing the x or y positions. The first way to process key inputs is by listening for events, similar to how we listen for the pygame quit event. The second way is to check the set of keys pressed at a given moment, which would allow us to hold onto a key continuosly.

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/