To place a building, we're going to first create a layer of tiles within Tiled. We'll import this tile layer data into our game, then programmatically draw squares that we can interact with. If a collision occurs between one of these squares and our mouse, we'll permit a player to draw out a building on click.
0:00 Draw placement blocks in Tiled
3:05 Export tile data and import into game
5:30 Transform data into 2D array
12:37 Create building placement tile class
14:49 Move placement tiles to correct position
18:56 Add hover effect
27:03 Refactor classes into individual file
29:01 Light up placement tiles
30:06 Create building object to place
39:28 Prevent doubling up on buildings
41:48 Expand building width
Tiled is awesome!!