pygame tutorial. In the previous few videos, we went over game physics for jumping with gravity in the y direction, and moving/sliding with friction in the x direction. For both tutorials, we set an invisible floor for the player to land on. In this tutorial, we remove that invisible floor and create platform with tiles instead. We also setup collision detection with the platform, and we will use this same function for collision detection with enemies, items, traps, etc.

Luckily, pygame already provides a collision function that we can use, but if you want to define your own, you can reference this formula defined in a function of my version of flappy bird, built in javascript: https://github.com/ImKennyYip/flappy-bird/blob/master/flappybird.js#L163

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

Click on the link below to access the images used in the tutorial!
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