Search Header Logo
Game Development Lesson 3

Game Development Lesson 3

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Maria Cruz Farooqi

Used 2+ times

FREE Resource

1 Slide • 10 Questions

1

Game Development Lesson 3

By Maria Cruz Farooqi

media

​Learning Target: I can identify instances of an object type before learning how to access the properties of an object. In doing so, I can make game levels that are more responsive to a player’s choices.

We’re going to be able to describe the characteristics of the spawnables we spawn into our game.


2

Drag and Drop

Question image
Remember, all
in our games have a set of
that make them who they are. For example, all of the hero objects have a
property. All objects of the same type will share the same set of properties.
Drag these tiles and drop them in the correct blank above
objects
properties
name

3

Dropdown

Question image
An object type is the
we give a group of objects that all share the
. For example, we have a
type. We also have a
type and an enemy type. An instance of an object type is a specific version of that object type. For example, Tharin is an instance of a hero type. The unicorn pug is an instance of the pet type.

4

Multiple Choice

Question image

Take a look at the image. These are instances of what object type?

1

pet

2

gem

3

hero

4

enemy

5

Dropdown

Question image
There are a few properties that we need to review. Let’s take a look at maxSpeed, maxHealth, health, and attackDamage. If you want to grab the values stored in these properties, we need to use the
More specifically, you will always write the name of the variable that stores the object in question. In the example seen on the slide, we create a variable named
and assign it to the result of calling
. This is now the object name that we need to write to the
. Then, the name of the property goes on the
. ”


6

Dropdown

Question image
We need the assignment operator
to ASSIGN our properties to new values. This is the same pattern that we saw when trying to reassign variables to new values. That makes sense because
are just variables in disguise!

7

Dropdown

Question image


First, we need to spawn the
into the scene. We can do this with game.spawnPlayerXY(“champion”, x, y)



player = game.​
( "​
" , 36 , 30 )

player.​
450

8

Multiple Choice

Question image

What is the name of hero object in the scene?

1

player

2

hero

3

Goliath

4

munchkin

9

Dropdown

Question image
What statements do we need to write in order to access and assign the player’s properties?

In order to access and
we need to use
. For example, in order to increase Goliath’s max health, we should write the statement:



player
maxHealth = 500


We can follow this pattern when assigning the other properties to ​
.


10

Drag and Drop

Question image
What does the error message mean to you?

The error says we need to set the
to either the word “horizontal” or the word “
”.




Drag these tiles and drop them in the correct blank above
answer option
direction property
vertical

11

Match

Question image

Match the following:

A variable that describes a particular characteristic of an object.

A group of objects that all share the same properties.

A specific example of an object type. For example, Anya is an instance of the hero type.

The act of creating a new object in a scene while a game is running.

The rules that govern how a player interacts with a game and how a game interacts with a player. 

Property

Object Type

Instance

Spawning

Game Mechanics

Game Development Lesson 3

By Maria Cruz Farooqi

media

​Learning Target: I can identify instances of an object type before learning how to access the properties of an object. In doing so, I can make game levels that are more responsive to a player’s choices.

We’re going to be able to describe the characteristics of the spawnables we spawn into our game.


Show answer

Auto Play

Slide 1 / 11

SLIDE