Tower Defense

By spaceblue - uploaded on 2010-2-1      3465 views (49 in the last 7 days)      8 votes (0 in the last 7 days)

Tags: space game defense tower

Tower Defense.

The currency is "matter" and "antimatter".
The only way to obtain antimatter (AM) is to buy an AM Generator tower.
Click once on a tower on the right to buy. Click the menu to return to the buy screen.
Press the spawn button to generate new enemies.
Press p to pause/resume.

Credits:
Designed the map after Ninto's.
Thanks to Ninto for the awesome blast animation! (Tell me if you don't want me to use it.)

Currently, nothing happens if you lose.
Update 2/1 : new towers
2/3: Many towers fixed.
2/4: Took down faulty towers.
2/5: Towers more balanced. Damage can be seen.
2/6: More balances. "_" in names fixed. Tracking towers up!
2/7: Deselect button added.
2/9: Enemy data up when you press spawn. Laser tower price drop.
2/10: UI updates. Tips section added! New purple background. Awesome Pause animation.
2/12: Working on new Enemies. Fire tower bug fix. Stun bug fix. Fire bug fix. Star animation. Options added.
2/13: Version number to keep track of versions. Timer added. Sell button.
2/14: Ice + Stun bug fix. More options. Game Over animation. Virus towers.
2/15: Added lag control. Go to options to turn it on.
2/16: Bomb towers! Electric towers!
2/17: Electric tower bug fixes.
2/18: More tips shown.
2/19: Purple robots! Wave generation is random. (This probably isn't fair.)
2/26: New Enemies! Tell me if these are a bit too strong.
2/28: Updated the text in the textbox.

Comments are appreciated! =)


Your browser is ignoring the <APPLET> tag.

This scenario is a member of the following collections: Scenario showcase, Space


Report this scenario as broken or inappropriate.

PiRocks writes (on 2010-2-27):

Oops, I meant to say I got to level 32.

A new version of this scenario was uploaded on Sun Feb 28 23:25:46 UTC 2010

kiersbei writes (on 2010-3-5):

Heeyy spacebluee can you help me please. I am creating a game for my coursework at college and i need to know how to get your wepeons to follow and shoot at the enimies automatically. Thanks

spaceblue writes (on 2010-3-5):

To get the correct rotation for the images, I use the Math.atan2 function, which takes the location of 2 points and then returns the angle that's necessary. Then I tell the towers to rotate that amount of degrees. For the weapons to fire automatically, I have implemented a counter in each tower. This counter will count down, and when the counter reaches 0, the tower will fire, and the counter will reset to its original amount.

kiersbei writes (on 2010-3-6):

Thanks m8 :D.. okayy the counter i have done that was quite simple but.. how would I do the Math.atan2 . . sorry I am a begginer to this and we have only learnt so much at college :(

Thanks
Kieran

spaceblue writes (on 2010-3-6):

So for Math.atan2, to get the degree you should rotate the angle in radians, it would be:
double rad = Math.atan2(enemy.getY() - getY(), enemy.getX() - getX());
Then, because this angle is radians, you'll have to convert it to a degree measure:
setRotation( (int) Math.toDegrees(rad));

MathManiac writes (on 2010-3-13):

The yellow aliens are the hardest 4 me.

MathManiac writes (on 2010-3-14):

I lost on lvl 14.

MathManiac writes (on 2010-3-17):

You should call your scenario, "Earth Defender".

 

kevin writes (on 2010-3-29):

well this is a very great game. I would like to see the code for the blood that the little guys give out when they take damages. also were you get your idea this game. I 'm taking a class in my school and i would like to spice is up a little bet with the counter and other things you got in this game.
how come you can't download this scenario?

See all comments for this scenario.



If you want to leave a comment on this scenario, you must first log in.


The Greenfoot Network:  Greenfoot.org    Greenfoot Gallery   Greenfoot-Discuss

Our sponsors:

University of Kent Deakin University Sun Microsystems