MicroTD: tower defense game

Hello, this is a tower defense game I made with my tiny game engine SAF.

You can compile and upload the game with Arduino IDE:

  1. set up Arduino IDE for Nibble
  2. create a sketch called e.g. utd
  3. in the folder put the files utd.h and saf.h
  4. in the main sketch file (utd.ino) write:
#define SAF_PLATFORM_NIBBLE
#include "utd.h"
  1. compile and upload!

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!

4 Likes

and the code is?
lol

It’s linked there, search :slight_smile:

MOOOR games… Always been a fan of old school tower defense games.

2 Likes

Realy good game.
Can you go past level 40? Because I can’t.

How do i start the wave? i can place a Guard/Cannon, and then im stuck lol

Never mind found it :sweat_smile:

Hi I’m trying to compile to my nibble but, it’s saying that it can’t find CircuitOS.h although it is at the same library as the other files, this is the error message:

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: “Arduino Uno”

In file included from C:\Users\galla\Desktop\utd\utg\utd.h:49:0,

             from C:\Users\galla\Desktop\utd\utg\utg.ino:2:

saf.h:2011:10: fatal error: CircuitOS.h: No such file or directory

#include <CircuitOS.h>

      ^~~~~~~~~~~~~

compilation terminated.

exit status 1

CircuitOS.h: No such file or directory

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Please advise,

Thanks,

me too but im on mac so it looks a bit different but the same error have you fixed it?

how do i set up the arduino ide for nibble?

Check out my NibbleTetris repository. It’s all explained there.
Works on mac, no issues.

use this guide to fix it

why can’t i buy the water and fire towers? i have enough money and can place any tower with ease

It could be because you need 2x2 cells space for the big towers.