Report as inappropriate.

No_avatar_thumb

Demoniso presents ...

2010/7/9

FROGGER

Clone of the famous classic game FROGGER
(Hint: Get error by pushing 2 keys at once. Working on that...)

1489 views / 16 in the last 7 days

Tags: game with-source

This scenario is a member of: INF303


open in greenfoot
Your browser is ignoring the <APPLET> tag.
No_avatarGreen-Foot

2010/7/15

Hey brother, in your frog. Instead of all that mumbo, jumbo you had written up replace it with this **CODE** import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class Frog extends Mover { public void act() { checkKeyPress(); } public void checkKeyPress() { if(Greenfoot.isKeyDown("left")) { setLocation(getX() - 5, getY()); } if(Greenfoot.isKeyDown("right")) { setLocation(getX() + 5, getY()); } if(Greenfoot.isKeyDown("up")) { setLocation(getX() , getY() - 5); } if(Greenfoot.isKeyDown("down")) { setLocation(getX(), getY() + 5); } } } Way to easy haha. Goodluck.

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

Who likes this?

No votes yet.