This video goes through the process of putting a hitbox on your player character, which forces them to stop when walking into walls. Additionally, I discuss the process of automatically generating these walls based off of a Tiled map.
Here is the sample project that I use during this video: github.com/kyleschaub/snippet...
Link to windfield:
github.com/a327ex/windfield
0:00 Introduction
0:13 Getting windfield
1:13 Creating the World
2:07 Player Collider
4:54 Collider Movement
7:26 Walls
8:59 Generate walls from Tiled
13:35 Outro
#gamedev
22 июл 2024