wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CodeCombat GD1 (Review)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

During Game Development 1 course, there were a few differences from Computer Science levels

a)

Each level introduces new mechanics, pieces, or goals.

b)

There is a run button.

c)

The code will run by itself without clicking on the game board to move the hero.

d)

Students use game instead of hero.

2.

Who is the person creating the game?

a)

student

b)

hero

c)

captain

d)

spawn

3.

A game must have a goal. What is a goal?

a)

the game piece that the student can "spawn".

b)

the task the player must perform to win (or progress) in a game.

c)

the specific elements that make up a game.

d)

the rules that govern how a player interacts with the game.

4.

The person who plays the game and controls the game piece is?

a)

spawn

b)

student

c)

player

d)

mechanic

5.

The rules that govern how a player interacts with a game, and how the game interacts with the player is?

a)

piece

b)

spawnable

c)

goal

d)

mechanic

6.

A game must have certain elements. What is the function of a "piece" in a game?

a)

the specific elements that make up a game.

b)

the task that a player must perform to win (or progress) in a game.

c)

the rules that govern how a player interacts with a game, and how the game interacts with the player.

d)

the person who creates the game.

7.

What are the pieces in a game?

a)

dice

b)

cards

c)

sports equipment

d)

all of the above

8.

A type of game piece that the students can "spawn" into their game.

a)

captain

b)

hero

c)

spawnable

d)

player

9.

To create a controllable player which code works:

a)

game.SpawnXY

b)

game.spawnPlayerXY("knight", 5, 8)

c)

game.SpawnplayerXY(munchkin, 4, 4)

d)

game.addMoveGoalXY(34,51)

10.

What does this code do? game.spawnXY("chest", 10, 18)

a)

Make skeletons appear

b)

Give ogres a chance to make a goal

c)

Make a red x appear in a certain place

d)

Helps you collect gems

11.

To add a goal to collect gems, use this code

a)

game.addCollectGoal()

b)

spawnXY("forest", 80, 90)

c)

game.spawnPlayerXY("knight", 8, 29)

d)

spawnXY("fence", 9, 59)

12.

Which code spawns some allies?

a)

game.spawnXY("guardian", 4, 10)

b)

game.spawnPlayerXY("thrower", 30, 50)

c)

game.spawnXY("archer", 28,32)

d)

game.SpawnXY("munchkin", 15, 15)

13.

What do "lightstones" do?

a)

damage the player when they get too close

b)

catch ogres for the player

c)

heals the players when it moves into it

d)

skeletons will run from the player

14.

You can configure the behavior of a "generator" by setting its properties. Which is an example of spawning a type of enemy?

a)

player = game.spawnXY("generator", 20, 20)

b)

game.spawnXY("generator", 45, 35)

c)

generator.spawnType = "skeleton"

d)

generator.spawnDelay = 5

15.

What does this code do: skeleton3.behavior = "Scampers"

a)

Spawns a skeleton to attack an enemy

b)

Makes skeleton3 move around randomly

c)

Makes skeletons move around randomly and attack

d)

Makes skeleton3 run away from the player

16.

Video games have virtual pieces such as?

a)

the levels

b)

the weapons

c)

the power-ups

d)

the enemies

e)

all of the above

17.

This command "spawns" a new piece at a certain location in the level

a)

game.spawnplayer

b)

game.spawnplayer(XY)

c)

game.spawnPlayerXT

d)

game.spawnXY(type, x, y)

18.

You can pass a number through an argument like: game.addSurviveGoal (20) to configure it so that the player

a)

will attack for 20 seconds

b)

will stay alive for 20 seconds

c)

will create a maze for 20 seconds

d)

will spawn a new enemy every 20 seconds

19.

When using the "fire-spewer" spawnable, the default direction property is?

a)

"diagonal"

b)

"horizontal"

c)

"vertical"

20.

To create a game with different mazes, use this code?

a)

game.spawnMaze

b)

game.spawnMaze(5)

c)

game.addMaze(3)

d)

game.defeatMaze(9)