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

Report as inappropriate.

comandodude101
comandodude101 presents ...

2013/1/2

Maze/Obstacle Course Level 2

Level 2

Controls:
Up to move forward.
Down to move backward.
Left/Right keys to turn.

Objective:
Get to the grapes and eat it without dying.

New:
There is respawning!!!
Credit to vonmeth for respawning code.

Maybe in the future:
Checkpoints.


3948 views / 948 in the last 7 days

3 votes | 0 in the last 7 days

Tags: game with-source

This scenario is a member of: My Obstacle Course Collection


Your browser does not support the canvas tag.
Level 3 will be out soon!
Things to expect in level 3: Respawning Possibly better walls Longer level A different fruit Possibly a new twist!
I will make level 3 at 50 views and atleast 1 vote
Well I have one vote so 24 views to go!
birdybirdy

2013/1/2

I like it. More fruit, woooh,
Thanks for the like!
5 more plays and I will make level 3!
Level 3 is out!!! Come check it out!
madonna11madonna11

2014/12/9

Can I see the codes for this? Thank you!
UNDEAD_DCUNDEAD_DC

2014/12/9

for movement you should use: private double a = 300; private double b = 200; private int speed = 2; public void act() { // Add your action code here. //move(1); int x = getX(); int y = getY(); int ww = getWorld().getWidth(); int wh = getWorld().getHeight(); if (Greenfoot.isKeyDown("up")|| Greenfoot.isKeyDown("w")) //for moving forward { a += Math.cos(Math.toRadians(getRotation()))*speed; b += Math.sin(Math.toRadians(getRotation())) * speed; a = 1+(a+(ww-3))%(ww-2); b = 1+(b+(wh-3))%(wh-2); setLocation((int)a, (int)b); } }

See all comments

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

Who likes this?

Game/maniac birdy WalkingPrawn911