Flashcards
Greenfoot
Cards in this deck (8)
- 1move();Moves the character.
- 2How do you move the character?move();
- 3How do you move an actor by a random number?if (Greenfoot.getRandomNumber())
{
move();
} - 4How to remove an actor(x) (Eat)if(isTouching(x.class))
{
removeTouching(x.class)
} - 5How do you play sound?Greenfoot.playSound("pop.wav");
- 6Counter(Actor)XWorld xWorld;
xWorld = (XWorld)getWorld(); Counter counter = xWorld.getCounter();
counter.bumpCounter(1); - 7Counter(TheWorld)At very top:
Counter counter = new Counter();
public Counter getCounter()
{
return counter;
} - 8—
Information
- Description
- GCSE Computer Science (6.Programming and Algorithms) Flashcards on Greenfoot, created by Asia Dixon~Nyah! on 17/03/2016.
- Created by
- Asia Dixon~Nyah!
- Views
- 7
- Rating