Defining Boards for the Game
2. Defining Boards for the Game
In the previous step, we created an NPC that can move forward, rotate left, and rotate right when it receives commands. Now in this step, we'll set up gameboards that the character can move around on.
In the previous step, we created an NPC that can move forward, rotate left, and rotate right when it receives commands. Now in this step, we'll set up gameboards that the character can move around on.
For this game, the gameboard needs to know and manage the following:
- Tile Size: How big the tiles on the board are so the character knows how far to move.
- Camera: What camera to use when the character reaches this gameboard. For this, we use the Fixed Point Camera device.
- Start Position: The position where the character should start on the board. For this, we use a Creative Prop so we can easily set it as an editable property and get its transform.
- End Goal: The end goal for the character to progress towards which signals the end of the gameboard. For this, we use a Trigger device that signals when the character steps on it.
- Obstacles: Obstacles prevent the character from immediately reaching the end goal. These are explained in more detail in Creating Obstacles.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.