Designing the level
For most of you, this section will take up the largest chunk of your time. Once you start designing a level, you’ll find it’s a lot of fun to lay out all the pieces and create challenging jumps, secret paths, and dangerous encounters.
First, you’ll create a generic Level
scene containing all the nodes and code that is common to all levels. You can then create any number of Level
scenes that inherit from this master level.
Using TileMaps
Create a new scene and add a Node2D
node named LevelBase
. Save the scene in a new folder called levels
. This is where you’ll save all the levels you create, and they will all inherit functionality from this level_base.tscn
scene. They’ll all have the same node hierarchy – only the layout will be different.
A tilemap is a common tool for designing game environments using a grid of tiles. They allow you to draw a level layout by painting the tiles onto the grid rather than placing...