GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Greenfoot

Zoe CB Computer Science GCSE Englisch 5,0Durchschnittliche Bewertung 5,0 von 5 (2 Bewertungen) 6 Karten

Greenfoot

Karten in diesem Stapel (6)

  1. 1Moving according to arrow keysif(Greenfoot.isKeyDown("up")){
    setLocation(getX(), getY()-1);
    }
    if(Greenfoot.isKeyDown("right")){
    setLocation(getX()+1, getY());
    }
  2. 2Moving around randomlyif(Greenfoot.getRandomNumber(100)<20){
    move(2);
    }
    if(Greenfoot.getRandomNumber(100)<20){
    turn(-90);
    move(-2);
    }
  3. 3"Eating"Actor Zoe = getOneObjectAtOffset(0,0, Food.class);
    if(isTouching(Food.class)){
    HouseWorld houseWorld
    houseWorld = (HouseWorld)getWorld();
    removeTouching(Food.class);
    }
  4. 4Playing a soundGreenfoot.playSound("pop.wav");
  5. 5Counter (at the end of the code for "eating", still in the if statement)Counter (at the end of the code for "eating", still in the if statement)
  6. 6Counter (in the code for the world)Counter (in the code for the world)

Informationen

Beschreibung
GCSE Computer Science (7. Programming) Karteikarten am Greenfoot, erstellt von Zoe CB am 01/04/2016.
Erstellt von
Zoe CB
Aufrufe
46
Bewertung
Durchschnittliche Bewertung 5,0 von 5 (2 Bewertungen)

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck