Create a new scene with Node2D as root
Add a TextureRect as child
Rename it to ReferenceMaze
Add a TileMapLayer as child
Select TileSet in bottom panel
Under Tile Sources add wall_atlas.png
Allow creation of the Atlas
Set the Texture Region Size to 32 x 32
Now switch over to the TileMap tab
Use the tiles provided to
Paint over the reference map
In Project Settings > Layer Names > 2D Physics
Rename the layers to represent the game objects
That live on those layers
We must add a physics layer to the TileMapLayer
Now we must paint the collision shapes on each tile
Select TileSet in the bottom panel
Paint the shape of each tile
Pacman and the Ghosts can travel
Through the tunnel in the centre
But Ghosts travel slower here
Add an Area2D as a child of Main
Rename it to TunnelSlowZone
Add two CollisionShape2D nodes
Place them over the tunnels
Attach a script to the TunnelSlowZone
Select the TunnelSlowZone Node
Connect the body entered signal
Connect the body exited signal
Code the body entered signal
To adjust the tunnel speed modifier
Code the body exited signal
To adjust the tunnel speed modifier
When we create the ghosts we must add them to a ghosts group and ensure they have a tunnel_modifier variable to change their speed.