Tower Defense Unity3D Test


I made, just for testing, a tower defense prototype. The gameplay rules are very simple: Enemies will be spawned and they will try to reach the magic crystals. Player health will be decreased for each enemy who touch any crystal. To avoid it you can build two kind of turrets: canyon turrets which launched projectiles and laser turrets which damage enemies over time.


I coded some custom inspector scripts in order to craft the map just in time. I mean that you can replace the tiles map from the object inspector instead of delete a tile and add a different one.
Select a tile, change the tile type and press “Change Prefab”. it’s possible to rotate the tile 90 degrees too.



There are few prefab tiles like normal enemy spawner, armored enemy spawner, laser turret, canyon turret, etc.. The enemies behaviour script can be attached to a more complex model, it’s ready to work with animations too.

You can you set your map dimensions quickly and change the different tiles which will be used before to find a correct path to the crystals using BFS algorithm.

In-game camera control is like a RTS style, you can move, zoom and rotate in order to navigate easily.

It was a very funny exercise and I suppose that make a more complex game from this “template” with a good looking graphics is possible.




Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )


Conectando a %s