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

Report as inappropriate.

Royalblue64 presents ...



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

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

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

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

6475 views / 620 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

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.



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


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.


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


To see me make my current record score of 3482 points, go to:
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


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