Gerlogu

Marketplace

Level Generation

How to Create a New Level

One of the most interesting points of this system is the possibility of creating customized levels. To do this, as with the enemies, there is a Behavior Tree that manages it.

To create a level, access the following directory:

GameFiles/BehaviorTrees/Levels

Within this folder there are two levels of examples. You can duplicate either one to create your own level.

In these Behavior Trees there are three Tasks to consider:

  • BPT_SpawnEnemy: Makes an enemy of your choice appear at a position on the stage. In addition, you can select if it is necessary to eliminate it to advance to the next node.
  • BPT_SpawnWave: Works the same as the previous Task, but with more than one enemy. You can choose the speed of appearance of this list of enemies.
  • BPT_EndLevel: Ends the level.

The stage is divided in a 20×20 grid, being the central position the {0,0}. Therefore, the grid starts from position {-10,-10} to {10,10}.

What are your feelings
Updated on May 3, 2024

Portfolio

Games

Documents

GitHub