MicroTD: tower defense game

Hello, here is a small tower defense game I made. It was originally written for Arduboy but I’ve rewritten it in my new engine called SAF which makes it run on ESPBoy (as well as on PC, in browser etc.). The game is released under CC0, public domain.

To compile this game:

  • Download the source code (single file) from here.
  • Download the SAF engine (single file) from here.
  • Create a new Arduino sketch, put these two files in its folder, and in the main sketch file (e.g. utd.ino) write:
#define SAF_PLATFORM_ESPBOY
#include "utd.h"
  • Compile the sketch with Arduino IDE.

small game manual:

  tower     $  range speed damage upgrades              notes
  -----------------------------------------------------------------------------
  guard     8  *      **    *     +range,  +speed       Shoots arrows.
  cannon    8  *      *     *     +range,  +damage      Does splash damage.
  ice      17  *      *           +speed,  +range       Slows down enemies.
  electro  30  **     *     **    +damage, shock        Shoots lightning.
  sniper   45  *****  **    **    +speed,  +range       Covers huge range.
  magic    60  *      *     *     +damage, speed aura   Support tower.
  water   100  ***    ***   ****  +range                Can knock enemies back.
  fire    100  ***    **    ****  +range                Does splash damage.

  creep      hp    speed $ notes            attacked by: G  C  I  E  S  M  W  F 
  -----------------------------------------------------------------------------
  spider     *      **   1                               .  .  .  .  .  .  .  .
  lizard     *      ***  1                               .  .  .  .  .  .  .  .
  snake      **     **   1                               .  .  .  .  .  .  .  .
  wolf       ***    **   1 Good against cold.            .  . 50% .  .  .  .  .
  bat        **     ***  1                               .  NO .  .  .  .  .  .    
  ent        ****   *    2                               .  .  .  .  .  .  .  .
  big spider ***    **   2 Spawns 2 small ones on death. .  .  .  .  .  .  .  .
  ghost      ***    **   2                               NO NO .  .  NO .  .  .
  ogre       *****  **   3                               .  .  .  .  .  .  .  .
  dino       *****  ***  3                               .  .  .  .  .  .  .  .
  demon      *****  ***  3 Supposed to make you lose.    NO NO NO NO NO NO .  .

Enjoy!

2 Likes

excellent game! thanks @drummyfish )

1 Like