Skip to content

DefenseMania/defense-mania

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

defense mania

A crossplatform tower defense game built with processing.

Donations

If you like Defense Mania and want to support further development of software like this, buy me a beer by donating via PayPal. <3

Installation

Windows, Linux, Mac OSX: Download the latest release for your platform from here.

Android: Download the latest release from here or install it from the Google PlayStore.

Web/Browser: Just start the game here.

Prerequisites

  • Java (JRE) is required to run the native Windows, Linux and Mac OSX versions.
  • Android 2.3.3 Gingerbread is required to run DefenseMania and at least 256-512 MB of RAM.
  • Your Browser should support the canvas element.

How to play the game

  1. Click on "Start", choose a map, a difficulty and start the game.
  2. Click anywhere on the map to build a tower. The hammer icon on the bottom left shows green areas where you can build towers.
  3. When you build the first tower, the game will start.
  4. Build towers to prevent the "enemies" from reaching the end of the path.
  5. Click on a tower to upgrade, sell or repair it. Selling a tower gives you about 80% of the money you paid for it in the first place.

Windows, Linux, MacOSX: Navigation on the map holding your right mouse button. Zoom in with your mouse wheel.

Android: Drag to navigation the map, pinch to zoom in.

Web/Browser: Navigation on the map holding your right mouse button. Zooming is disabled.

Contribute

Game

prerequisites
getting started
  • Download and install everything above
  • Install Android SDK API Level 10 Platform & Build-tools Rev. 19.1
  • The game was built on Processing 2.03b and won't run on the current version of Processing. We will hopefully fix that soon.
  • Get the source: git clone https://github.com/kriskbx/defensemania.git
directory structure

DefenseMania is splitted into 3 parts: desktop application and android application, browser/web application. They share most of the code. The shared code is located in src/shared as well as all the assets. Everything is symlinked (relatively) into the 3 parts of DefenseMania. If you want to recreate the symlinks, run ./src/symlinks.sh.

build it
  1. Desktop: open the desktop project in processing and export the application.
  2. Android: open processing, export the android project from the file menu, run cd src/android && ant, this will create the file src/android/application.android/DefenseMania-unsigned.apk.
  3. Browser: run cd src/browser && ant, this will create the compiled and minified project in src/browser/application.web.

Maps & Map Editor

  1. Download the DM Map Editor from here and read how to use it.
  2. You can submit new maps via pull-requests in this repository.

Graphics

Take a look here.