Skip to content

Tiny Kingdom: Tower Defense

Nate River edited this page Aug 24, 2026 · 2 revisions

About

All you need to build a Tower Defense game! Animated creatures, towers, tilesets, effects and more. Get on the Asset Store.

How to use

  • Open and run Creatures scene to play with creatures.
  • Open and run Gameplay scene for the gameplay demo.
  • Open and run Towers scene to play tower shooting animations.
  • Open and run Weapons scene to see all weapons.

Script reference

You will find all scripts inside the Scripts folder. There are 5 script groups.

Common

General-purpose scripts.

Creature

Creature-related scripts.

  • CreatureState - a list (enum) of all possible creature states.
  • FaceExpressions - a list (enum) of all possible creature face expressions (when applied).
  • SoloAnimationState - used in Animator to block state transitions.

Demo

Demo scripts are used in our gameplay demo.

All demo scripts are just basic examples, they don't cover all possible gameplay logic and mechanics. You can use demo scripts for learning and creating your own implementations based on them.

  • Builder - a basic script to build towers based on the cursor position.
  • CreatureController - can be used to control creatures manually, with a keyboard. Used in Creatures scene.
  • Cursor - a basic cursor implementation to select world grid cells
  • MagicTower - represents magic towers.
  • MechTower - represents mechanical towers.
  • Monster - represents creatures.
  • Projectile - represents projectiles (arrows, fireballs and other).
  • ShooterTower - represents towers with shooters (archers, wizards).
  • Spawner - a simple script that creates creatures from prefabs and handles checkpoints.
  • Tower - a basic script for all towers.
  • TowerDemo - used in Towers scene.
  • WeaponRotationTest - just for testing tower rotation.

Fx

Scripts related to projectiles, magic and other effects.

  • FxManager - contains links to all effect prefabs.
  • ProjectileFade - used to fade in projectiles.
  • SpriteSheetAnimation - plays spritesheet-based animations.

Scene

Scripts used in scene setup.

  • CustomGrid - used to reposit game objects in a grid.
  • GridSnap - used to snap (attach game) objects to the grid.
  • SortingOrder - sets sorting order based on Y-position.
  • TimeScale - used for testing.

Clone this wiki locally