Update Tiles Data Table and ASCII Map

To be able to spawn enemies, the Tiles map needs a new row for the enemy id. You will also need to update the ASCII map to include places where the enemies can spawn in the dungeon.

Add Enemy Row to Tiles Data Table

A new id for enemies needs to be added. In this case, the letter E will be used to mean Enemy.

  1. Open up the Tiles Data Table.
  2. Add a new row to the data table.
  3. Set the id column for that row to E.
  4. Set the key column for that row to Enemy.

Add Enemy Spawn Points

To add spawn points to the map, you will need to modify the ASCII map by adding E ids. In the ASCII map below, enemy spawn points have been added by setting some tiles to E.

Open up the GenerapMap script and modify your ASCII map to include spawn points.

map = [[

	1111111111
	11E0001101
	10011E01E1
	1111101101
	110E000EE1
	1E01111001
	1011001E01
	1011101011
	1S10E00011
	1111111111

]]

Scroll to Top