955 B
955 B
How to add new content to the game
A small guide so other people also understand how to add content.
Tower
- Update Towers.json by adding to the end of the array.
- Update TowerType in Defintions.ts
- Based of the Tower.sprite value, add projectile folder with appropriate projectiles as .png.
- Based of the Tower.sprite value, add the tower sprite into towers folder as a .png.
- Add appropriate behaviour in Tower.ts (if statement in update).
- Add way to spawn via TowerTab.ts button.
Creep
- Update Creeps.json by adding to the end of the array.
- Update CreepType in Defintions.ts
- Based of the Creep.name value, add creep's walking animations to the same named subfolder in creeps folder.
- When using creeps in waves, reference them by their index in the CreepType enum.
Gem
- Update Gems.json by adding to the end of the array.
- Update GemType in Defintions.ts and make sure Gem.type is CaSe sensitively the same.