Adding Collisions and Walls (from Tiled) to your Love2D Game

Channel:
Subscribers:
113,000
Published on ● Video Link: https://www.youtube.com/watch?v=dZzAxYrUMRg



Duration: 13:54
15,780 views
434


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: https://github.com/kyleschaub/snippets/tree/main/love2d/5_camera

Link to windfield:
https://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







Tags:
game development
love2d
lua
collisions
physics
windfield
programming