Warcraft: Tower Defense

From GameBrew - a wiki dedicated to Video Game Homebrew.

Warcraft: Tower Defense

Warcraft: Tower Defense is an adaptation of Warcraft 3 mod, for the NDS. This project was started in August 2006, features solid gameplay with 2D graphics, and supports some customization through various options.

Except for the monsters sprites & icons that were only slightly modified, all the original gfx and 3D models were complety reworked as 2D sprites by hand. This game is entirely coded in C, with the help of the PAlib library. It also include a fully-featured and easy-to-use map editor, coded in C# with the .Net framework 2.0.

It was in the 5th place for the best DS homebrew contest in 2009.


  • Real time strategic game.
  • Can load custom-made maps very easily.
  • Advanced dynamic pathfinding.
  • Mmax. 40 towers and their attacks gfx along with 40 monsters on screen simultaneously.
  • 10 special powers for towers (slow, poison, critic damage, pierce, fire magic, water magic, lightning magic, wind magic, splash damage, reveal invisible monsters).
  • Same for monsters resistance & immunes.
  • Flying & walking monsters types (and ability for towers to attack both or only one type).
  • Dynamic sound engine & stereo sound placement (not included for now, comes in next release).
  • Max 256 differents types of monsters.
  • Max 256 differents types of towers.
  • Max 256 rounds.
  • Max 11 possible upgrades per tower.
  • Max 8 base evolution levels.
  • Max 8 different clans to choose from at the start.
  • 128 icons gfx for towers, evolutions, etc.
  • 64 towers gfx with 6 color variations for each.
  • 36 towers gfx with 4 color variations for each.
  • Fully customizable engine through map definitions.
  • Advanced graphical map editor.
  • And more.


Copy the Maps folder in the root of your card. You can add as many maps as you want in this folder (like new ones downloaded from my site).

If your flashcard does not support automatic DLDI-patching, you have to patch the game binary manually.

Copy the binary file where you want on your flashcard. Note that some cards like M3/R4 need the binary to be placed at the root to be DLDI-patched automatically.


L/R - Switch screens

D-Pad or A/B/X/Y - Scroll the map

Start - Pause game (can also close the lid)

Tap on the tower stats/description - Switch

Tap on an icon - Make a choice

Double tap - Validate a question


DS Homebrew: Warcraft Tower Defense [Deutsch|HD] (Flashcardsinfo)


v0.5 25/02/2008

  • PAFS version is gone, now only the fat/DLDI version is available.
  • You can now use the arrow keys to select maps in the menu.
  • Added 5 automatic levels of difficulty for each map: it affects the life of the monsters, and the final score.
  • Options are now saved within the rom (require DLDI driver with write support).
  • In-game menu added.
  • Added possibility to restart the map in-game.
  • Added quicksave & exit in-game option so you can save your current game and finish it later (require DLDI driver with write support).
  • High-scores are now saved (require DLDI driver with write support).
  • High-scores can be viewed on the map selection screen (press L or R to switch minimap/high-scores).
  • Small speedups here and there.
  • Added some new maps.
  • New game icon.
  • Fixed some bugs.
  • Fixed Long Walk TD skeleton's round.

04/02/2007 : v0.4 beta

  • PAFS version was broken in the last release, now it's working again.
  • Corrected the bug that prevented max towers bonus for first evolution to be applied at start.
  • Corrected colors of selection circle, it looks better now.
  • Fixed the animation bug when a monster is killed at spawn.
  • Fixed sprite scrolling, now sprites are in phase with background while scrolling.
  • Updated the map editor, see its changelog for details.
  • Added a bunch of new features for maps, like small & transparent monsters, W3 damage style, choice for the colors used in the minimap for painting entities.
  • Complete rewrite of the sprite engine, now sprites corruptions problems should be fixed.
  • Added a nice zoom effect when building/upgrading towers.
  • Added current window display on minimap.
  • You can now scroll the map directly by dragging the window on the minimap.
  • Monsters are now hidden and no more over a tower when you build a tower over a dead one.
  • Added a flashing message when a new evolution is available and wasn't before.
  • You can now scroll maps in the map selection screen directly by touching the scroll bar.
  • Added the option to build tower by double-tapping.
  • Added the option to choose L/R to work as a switch and don't need to be held.
  • Added the option to allow to build multiple towers at once.
  • Added the option to choose the position of the in-game build menu.
  • Added an option menu.
  • Added a Linux script for PAFS version.
  • Added multiple paths management (up to 4).
  • Removed the 40 monsters spawn limit per rounds, now up to 256 monsters per path can be spawned in a round (but remember that only 40 can be active at the same time).
  • Added stereo sound placement.
  • Updated & added some new maps (try the map Hellgate Keeper's to the new features in action).
  • Added a new pathfinder, quite faster than the old one but less accurate.
  • Little optimizations here and there.

v0.31 beta 04/02/2007

  • Now use latest devkitpro (r20) with latest libnds, libfat & palib.
  • Stylus precision & jumping problems fixed (thanks to latest libnds).
  • Stylus problems with R4/M3 simply should be fixed (thanks to latest palib).
  • Corrected the bug that make the map selection screen froze when there was more than 10 maps (FAT version).
  • Stat screen flickering/disappear bug in the upper part fixed (thanks to latest palib?).

v0.3 beta 28/01/2007

  • Now use latest libfat with DLDI support.
  • Corrected a bug in the file filter, now FAT version works without having to rename the maps.
  • Fixed the missing border of some icons.
  • Temporary workaround for solving the screwed up sprites problem.
  • Added a new bunch of great 3rd party maps.
  • Corrected some bugs in the "Save The Snowman" map.
  • Corrected tower collision map in the "Long Walk TD" map.
  • Added a circle around the current selection.
  • New map: Orange Frenzy.

v0.2 beta 20/01/2007

  • Corrected the bug with the animation of some monsters.
  • Corrected a bug which may occurs when selling a tower.
  • Adjusted the pathfinder's memory allocation: big maps should now works.
  • Adjusted detection zone for build/cancel buttons.
  • Increased values range some parameters (life of the dragon in Spiral TD should now be correct).
  • Spawn and end points are now displayed on the minimap.
  • Added preliminary libfat support.
  • New map: Save The Snowman.
  • Added some 3rd party maps to the package, thanks to their authors.
  • Now the PAFS version can run on the DeSmuME emulator. It's now easier to test your maps created with the editor.

v0.1 beta14/01/2007

  • First public version.


Mollusk for PALib, and adding in every single feature.

Gutter Talk for the documentation for the Map Editor.

YnotnA, Zippi and Balu, Deshi, Mat88, TheRock and all other map makers.

Arialia for her tutorial on how to use the new libfat.

The DS-Xtreme team for sending a sample, without it FAT version would probably not exist.

Vodevil, Bobby Sixkilla, OMG & [email protected] for their help with the beta test.