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: https://youtu.be/9o4gDQvVkLU?si=hujtQkP18gBzOXKZ

How to install Pygame: https://youtu.be/5uOTEOJ48G8

Pygame Tutorial Playlist: https://youtube.com/playlist?list=PLnKe36F30Y4alXrjE6oL5VWtDsYdONpfj&si=-qNgHH_pphIoiTiU

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

Python Object Oriented Programming Playlist: https://www.youtube.com/playlist?list=PLnKe36F30Y4Ykmi2jE28BZahMgPAV3Dzv

Python Game Projects Tutorial Playlist: https://www.youtube.com/playlist?list=PLnKe36F30Y4bamRi07AOYS1qGDv_2MGMW

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