Green foot

studied byStudied by 2 people
0.0(0)
Get a hint
Hint

Move via arrow key

1 / 15

flashcard set

Earn XP

16 Terms

1

Move via arrow key

If (Greenfoot.isKeyDown(“ ”)) {

setLocation( getX(), getY());

New cards
2

Turn when at edge

If (isAtEdge()) {

Turn(180);

Move(10);

}

New cards
3

Make an object move randomly

move(Greenfoot.getRandomNumber(10));

turn(Greenfoot.getRandomNumber(180) -90);

New cards
4

Eat

If (isTouching(car.class)) {

getWorld().removeObject(this);

}

New cards
5

Play sound

Greenfoot.playSound(“pop.wav”)

New cards
6

Stop

Greenfoot.stop();

New cards
7

Counter

Counter counter = (Counter)getWorld().getObjects(Counter.class) .get(0);

counter.add(1);

New cards
8

Sensible size for a word

(100, 100, 4)

New cards
9

What is an assignment

Giving something a value

New cards
10

What is a selection

if statement

New cards
11

Example of a superclass

  • World

  • Actor

New cards
12

Example of an inherited class.

World —> ground

New cards
13

What is a parameter

It is anything inside the bracket

New cards
14

What is method

Public void act

New cards
15

Example of a private property

counter (LOWER case ONLY)

New cards
16

Examplm of a parameter

Amount

New cards

Explore top notes

note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 52 people
... ago
4.7(3)
note Note
studied byStudied by 2 people
... ago
4.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 35 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 448 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (68)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (182)
studied byStudied by 28 people
... ago
5.0(3)
flashcards Flashcard (22)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (50)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 1 person
... ago
5.0(1)
robot