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

2025/6/5

I hame littel eroro

Philipe_Manor Philipe_Manor

2025/6/5

#
Hello friends i want make a Cashew game. Mi idea es to ham a cashew moving over a nut backgroined. Yo want it to be like crossing road : ] I dont want no cross eyed game. Mi game es my own idea, so por favor don't copy. that eroro is i cant make the loser screen which es crack the nuts open. the nut on screen shuld be averaged size for a cumpoters screen but min is 2 feet and i cant make it bigger. Mi nut es tu small to cover la face. Face es too big. ples help mi por favor, los chicos. chao, Philipe : ] public class MyWorld extends World { /** * Constructor for objects of class MyWorld. * */ public MyWorld() { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. super(600, 400, 1); Face smile = new Face(); addObject(smile, 370, 200); Nuts nutty = new Nuts(); addObject(nutty, 200, 200); Nut nutt = new Nut(); addObject(nutt, 390, 200); } } /** * Write a description of class Nut here. * * @author (your name) * @version (a version number or a date) */ public class Nut extends Actor { /** * Act - do whatever the Nut wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { if(Greenfoot.isKeyDown("right")) { move(20); } } }
You need to login to post a reply.