This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

ndrwdslv
ndrwdslv presents ...

2013/4/25

TowerDefense

Moves a ship around a map using coords.

Press W/S to inc/dec speed of ship.

It calculates coords based on an array of coords for each steps/turns based on speed too, in case move() skips the coords in the base array.

Not sure how other scenarios do this, but it'll work fine for my tower defense.. unless you guys have a more clever approach!

1530 views / 5 in the last 7 days

1 vote | 0 in the last 7 days

Tags: demo with-source

Your browser does not support the canvas tag.
ndrwdslvndrwdslv

2013/4/25

Not sure how I'll handle curves/circles yet..
ndrwdslvndrwdslv

2013/4/25

oh and the map is low quality right now.. just copy/pasted tiles.. final product will be better!
A new version of this scenario was uploaded on Thu Apr 25 05:10:12 UTC 2013 Press W/S to inc/dec speed of ship. New ship spawns after current ship reaches end of map! Next will be new ships/randomness.
ndrwdslvndrwdslv

2013/4/25

I'm aware of a bug in the demo that ship may still skip turns, caused by the increase/dec in speed.. not a critical bug since that feature won't be in the final version (or will be handled better).
A new version of this scenario was uploaded on Thu Apr 25 05:24:45 UTC 2013 Add random ships with different speeds. Next up is having more than one ship on the map at once.. multiple delayed spawns!
A new version of this scenario was uploaded on Thu Apr 25 14:51:21 UTC 2013 Refactored a bit.. not sure if I'll keep this level management "system". Up to 15 ships will be spawn with a 1 second interval. Goal is to have predetermined waves, but this is just a demo.
JetLennitJetLennit

2013/4/25

Is one of those a Klingon Bird of Prey?
KartoffelbrotKartoffelbrot

2013/4/25

Final game will be nice i think.

Want to leave a comment? You must first log in.

Who likes this?

davemib123