Font size
WorksheetsCodeCombat GD1 (Review)
Total questions: 20
Worksheet time: 10mins
During Game Development 1 course, there were a few differences from Computer Science levels
Each level introduces new mechanics, pieces, or goals.
There is a run button.
The code will run by itself without clicking on the game board to move the hero.
Students use game instead of hero.
Who is the person creating the game?
student
hero
captain
spawn
A game must have a goal. What is a goal?
the game piece that the student can "spawn".
the task the player must perform to win (or progress) in a game.
the specific elements that make up a game.
the rules that govern how a player interacts with the game.
The person who plays the game and controls the game piece is?
spawn
student
player
mechanic
The rules that govern how a player interacts with a game, and how the game interacts with the player is?
piece
spawnable
goal
mechanic
A game must have certain elements. What is the function of a "piece" in a game?
the specific elements that make up a game.
the task that a player must perform to win (or progress) in a game.
the rules that govern how a player interacts with a game, and how the game interacts with the player.
the person who creates the game.
What are the pieces in a game?
dice
cards
sports equipment
all of the above
A type of game piece that the students can "spawn" into their game.
captain
hero
spawnable
player
To create a controllable player which code works:
game.SpawnXY
game.spawnPlayerXY("knight", 5, 8)
game.SpawnplayerXY(munchkin, 4, 4)
game.addMoveGoalXY(34,51)
What does this code do? game.spawnXY("chest", 10, 18)
Make skeletons appear
Give ogres a chance to make a goal
Make a red x appear in a certain place
Helps you collect gems
To add a goal to collect gems, use this code
game.addCollectGoal()
spawnXY("forest", 80, 90)
game.spawnPlayerXY("knight", 8, 29)
spawnXY("fence", 9, 59)
Which code spawns some allies?
game.spawnXY("guardian", 4, 10)
game.spawnPlayerXY("thrower", 30, 50)
game.spawnXY("archer", 28,32)
game.SpawnXY("munchkin", 15, 15)
What do "lightstones" do?
damage the player when they get too close
catch ogres for the player
heals the players when it moves into it
skeletons will run from the player
You can configure the behavior of a "generator" by setting its properties. Which is an example of spawning a type of enemy?
player = game.spawnXY("generator", 20, 20)
game.spawnXY("generator", 45, 35)
generator.spawnType = "skeleton"
generator.spawnDelay = 5
What does this code do: skeleton3.behavior = "Scampers"
Spawns a skeleton to attack an enemy
Makes skeleton3 move around randomly
Makes skeletons move around randomly and attack
Makes skeleton3 run away from the player
Video games have virtual pieces such as?
the levels
the weapons
the power-ups
the enemies
all of the above
This command "spawns" a new piece at a certain location in the level
game.spawnplayer
game.spawnplayer(XY)
game.spawnPlayerXT
game.spawnXY(type, x, y)
You can pass a number through an argument like: game.addSurviveGoal (20) to configure it so that the player
will attack for 20 seconds
will stay alive for 20 seconds
will create a maze for 20 seconds
will spawn a new enemy every 20 seconds
When using the "fire-spewer" spawnable, the default direction property is?
"diagonal"
"horizontal"
"vertical"
To create a game with different mazes, use this code?
game.spawnMaze
game.spawnMaze(5)
game.addMaze(3)
game.defeatMaze(9)
