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

Report as inappropriate.

Royalblue64
Royalblue64 presents ...

2011/11/9

Dodge

Dodge the lightning! If you run out of lives, it's game over. The game gets harder the longer you live.

Conrols:
left arrow key = move left
right arrow key = move right
down arrow key = speed burst - hold while moving
up arrow key = jump, flip if moving
'c' key = toggle no-edge

Items:
'S' Boxes = Slow-motion power-ups. Activate with the 'space' bar.
'1up' Boxes = Extra life.

Suggestions (and likes) welcomed :P
Post your best score!

7014 views / 15 in the last 7 days

4 votes | 0 in the last 7 days

Tags: game physics demo score dodge survival high lightning

This scenario is a member of: Dodge Games


Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
jdemshkijdemshki

2011/12/25

how do you do the lives?
A new version of this scenario was uploaded on Sat Dec 31 23:27:14 UTC 2011 Added 1ups
A new version of this scenario was uploaded on Sun Jan 01 19:26:02 UTC 2012 Game now continues at a slower speed when you lose instead of stopping
A new version of this scenario was uploaded on Sun Jan 01 22:40:35 UTC 2012 - Made score counter more efficient - Added a no-edge function, toggleable - Fixed negative slow-motions glitch
Royalblue64Royalblue64

2012/1/8

For lives, you have to have a Counter class of some sort (at least in my experience). In the world class, you do the following: public MyWorld() { public Counter lifeCounter = new Counter("Lives: "); addObject(lifeCounter, x coordinate, y coordinate); } public Counter getLifeCounter() { return lifeCounter; } Now, with other classes you can use getLifeCounter to add and subtract. In the Counter class that I use, there is an add(int score) method, so if I was adding a life, I could do ((MyWorld)getWorld()).getLifeCounter().add(1); and that would add one. Also, if I lose a life, I would do ((MyWorld)getWorld()).getLifeCounter().add(-1); You can do this now from any other Actor you like. The key is the Counter class though.
Royalblue64Royalblue64

2012/1/8

Also, if you want to see the code, you can open it in Greenfoot at the top of the page
Royalblue64Royalblue64

2012/1/9

To see me make my current record score of 3482 points, go to: http://www.youtube.com/watch?v=iysfpl0kEaw
A new version of this scenario was uploaded on Thu Feb 02 04:58:09 UTC 2012 - Changed speed boost to ninja roll thing - Changed Lightning fall speed equation
Royalblue64Royalblue64

2015/8/9

Hello y'all, I haven't been active on this site for a while, but I recently took a look through the code for this game and almost vomited... So, I decided that I will remake this game following all the proper programming conventions to make the code as easy and sensible as possible.
A new version of this scenario was uploaded on 2015-11-20 06:55:36 UTC - Changed the sprite for the lightning to something much more appealing - SlowMotion power-ups no longer spawn while you are already in slow motion

See all comments

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

Who likes this?

thegreencoolerman tempel Mr.Sandbox darkmist255