towerDefense.scene
- .build.state16 B
- .metadata17 B
- README.md1.1 KB
- build.luau8.0 KB
- entrypoint.luau11.1 KB
- scene.json201 KB
README.md
towerDefense
A small, complete tower defence level built from published kits: enemies walk a winding road in five waves, you walk up to a stone pad and press E to build, upgrade or sell a tower with gold, kills and each new wave pay gold, the keep at the end of the road has 20 lives, and clearing the last wave wins. If the keep falls, the round is lost.
It is the finished level of turretsKit's guide "Make a tower defense game" (turretsKit.package/makeATowerDefenseGame.guide), which builds it step by step from an empty world.
build.luau: the ground, the road and its waypoints, the eight build pads, the keep, the MatchFlow match, Second Wind's rules, the wave spawner and the player.entrypoint.luau: gold, the pads' build/upgrade/sell menu, bounties, wave income, lost lives, the keep falling, and a fresh start each round.
Kits: turretsKit (towers), spawnerKit (enemies and waves), Second Wind (health), MatchFlow (waves, victory, defeat, results), economyKit (gold), menusKit (the menu, brought by economyKit), interactKit (the pads) and barsKit (health bars).