Coding

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

What is a canvas

A part of a display on which a gam runs

2
New cards

What is a screen

A large grid of pixels. Each pixel has a unique x and y coordinate

3
New cards

How do we give an illusion that an actor is moving fast

By increasing the canvas frequency and changing the x and y coordinates rapidly we can give the illusion of moving actors

4
New cards

getWidth() and getHeight()

To give us the full width and height of the canvas

5
New cards

getX()

To give the exact position of an actor

6
New cards

What does method do

A set of instructions an object has to follow

7
New cards

Constructor

Gives initial values for new object created

8
New cards

Getter

Is a method that allows you to access information on a field in a class

9
New cards

Setter

Changes a fields value

10
New cards

Helper

Supports all the other methods by breaking them into smaller parts

11
New cards

What is a class

A blueprint for creating an object, defining the field and method of each object

12
New cards

Field

A variable found in a class that contains values. Such as as: colour, number, size etc.

13
New cards

Object

A thing in code that contains a method and field

14
New cards

Comment (types)

Used to explain code, but is ignored by the computer.
// single line comment
/*
disfjosdif
*/

15
New cards

Vairable

A component that stores information that can change throughout the duration of the component

16
New cards

Data types

int, boolean, float, and doable

17
New cards

addObjects()

Adds objects to the world

18
New cards

getRandomNumber(x)

A method used to get a random number

19
New cards

What is a loop

To repeat code several times. Although undesirable in code it is essential when gaming

20
New cards

IDE

Intergrated Development Environment

21
New cards

API

Application Programme Interface

22
New cards

What is greenfoot

A gaming engine that allows you to create 2D animation through Java code

23
New cards

Import

Used to import additional code from libraries

24
New cards

Semicolons

Used to end code, to show the computer the instruction is complete

25
New cards

Curly brackets

To group code

26
New cards

If statement

Allows the program to make decisions