Font size
WorksheetsChapter Checkpoint 1 to 5 - GAMEPROGDSGN
Total questions: 100
Worksheet time: 50mins
What is a game engine?
A collection of pre-written code, programs and other resources that can be used as a starting point to write video games.
The name of the programming language you will use to create games.
A piece of software that allows you to drive game programs.
A special type of video game.
Why would you want to use a game engine to create game programs?
Because your game development experience will be quicker and easier
Because game engines will always make your game run faster
Because game engines are always free and let you make more money
Because game engines will handle all of the creative work for you
Which of the following is NOT a common feature of game engines?
Providing pre-written games that you can just sell
Support for easy sound effects and music
Management of images and animation
Support for multi-player discovery and networking
Which type of game engine doesn’t usually give access to the original source code?
Community engines
Proprietary engines
Open-source engines
Public domain engines
Which game engine will we be using in this course?
XNA Game Studio
Volkswagen
Unity
GameMaker Studio
What type of game engine is free for anyone to download and use?
Open-source engines
Royalty engines
Proprietary engines
Licensed engines
Which of the following should you consider when choosing a game engine?
What support is available for the engine?
You should ask all of these questions.
Does the engine support the language I want to use?
How much does the engine cost?
In most cases, you are not going to be able to create a complex video game without __________.
Using fancy explosions.
Paying fees.
Owning expensive equipment.
Writing Code.
What programming language will we be using to create Unity games?
Java
HTML
Unicode
C#
What tool will allow you to write code more easily and quickly?
A Game Asset
A Robotic Code Generator
A Public Library
An Integrated Development Environment
Games that want to support public _____ can include an IDE or level designer just for that game.
Keys
Mods
Code
Crafts
How can you test your game program on many different target devices, like smartphones, game consoles and PCs?
You will need to purchase one of each of the target devices.
There is no way to test on different types of devices.
You can use an emulator to simulate these environments on your computer.
Your game program will always look the same on all devices.
Which of the following is NOT an example of an “asset” in a game program?
An input device
A video
A sound
An image
Which image editing program is free and will work on many different platforms, including Mac OS X and Windows?
Paint
GIMP
iPhoto
Photoshop
Which of the following features can be supported by a game library or API?
Implementation of game physics
Collision detect between game objects
All of these, and more!
Handling complex 2D and 3D images and animation
Unity can create games for _______.
Only IOS devices.
Only Mac Computers.
Only Windows Computers.
All kinds of devices and computers, including Android, IOS, Mac and Windows.
What is the Unity Asset Store?
A convenient place to browse available images, sounds, videos and more that you can purchase to use in your games.
A program that allows you to draw your own game graphics.
A place where you can purchase the Unity IDE software.
A place where you can buy Unity games.
Which version of Unity is free to use if you are an individual?
Pro Edition
Enterprise Edition
Plus Edition
Personal Edition
When you install the free version of Unity, you have to _____.
Create and register a Unity account.
Promise that you will never make money with your games.
Agree to only sell games on the Unity Asset Store.
Pay a small fee.
When you build a game with the Unity Personal Edition, what will appear when you launch the game?
Nothing will appear on the screen
A unity logo will appear on all scenes
A copyright notice is shown in the upper-left corner while the game is played
A brief Unity Splash screen
What type of Unity games will we be creating in this course?
1D
3D
4D
2D
Which tab in the Unity interface will show detailed information about the selected game object?
The Hierarchy tab
The Inspector tab
The Project tab
The Diagnostic tab
Which tab in the Unity interface will show the design of your game world?
The Console tab
The Design tab
The World tab
The Scene tab
Which tab in the Unity interface will display the assets(images, scenes, etc) that you have added to your game?
The Hierarchy tab
The Inspector tab
The Console tab
The Project tab
The Unity IDE is very flexible, so you can configure the tabs and panels however you like.
True
False
Which Unity Help section contains full technical details about the Unity API?
YouTube videos
The Scripting Reference
The Unity Manual
The C# Tutorial
Which Unity Help section is written as a plain-language description of a concept or introduction to completing certain tasks in Unity?
The Unity manual
The Unity Feedback reference
The Unity Forum
The Scripting Reference
What folder will hold all of the image, sound, script, and other resources for your Unity project?
The Assets folder
The Source folder
The Images folder
The Library folder
The basic building block in a Unity game is called a _____.
GameObject
BuildingObject
AssetObject
BlockObject
On its own, a GameObject does not do very much!
False
True
What does Unity call something that provides some sort of functionality to a GameObject?
An image
A component
An asset
A function
When you save your Scene object with a name, where will it appear?
The Console tab
The Scenes list
The Component list
The Assets area
Which component is ALWAYS attached to a GameObject and cannot be removed?
An Asset component
A Sprite component
An Image component
A Transform component
In Unity, a ____ is the container that holds the game objects that appear together on the same screen.
Asset
Project
Container
Scene
Which statement below is true about the relationship between sprites and image assets?
Neither of these is true
Both of these are true
You can create multiple sprites from the same image asset
You can base one sprite on multiple image assets
Which Rotation value would you set to change the rotation angle on a 2D Sprite?
Y
None of these will work
X
Z
Which “Scaling” value will display a sprite image at the normal size, without stretching or shrinking?
1.0
2.0
0.0
0.5
If an object is located directly above the center position on the screen, which of the following is most likely value of the “Y” location coordinate?
-1
0
1
It is impossible to tell
If you delete an image from your Assets list in Unity, what happens to the file on your computer?
The file is automatically renamed to <filename>.old.
The file is automatically moved to another folder on your computer.
Nothing happens to the file.
It is deleted from your computer.
The sprite Renderer component allows you to control the color, sorting and other appearance settings of a sprite’s image
False
True
What large library of libraries and objects is available to the C# language?
COOL Library
Java Library
Microsoft Library
.NET Framework
__________ is the process of turning human-readable source code into native machine language.
Interpreting
Gaming
Compiling
Coding
What type of program sends only the source code and not the compiled code to the target computer?
Native
Compiled
Interpreted
Hybrid
Which of the following best describes the source code that most human programmers will write today?
Mathematical equations written on paper
A series of dots and dashes on a punch card
Human-readable text stored in text files
1’s and 0’s stored in binary files
Why would you write a C# script for your game?
All of these are true
To control the behavior of your game objects
To provide captions for your audio track
To describe the game plot and story
Which of the following best describes the relationship between scripts and GameObjects?
Every game object has its own unique script
A script can be assigned to multiple game objects; one game object can use multiple scripts
A script can be assigned to one and only one game object
A game object can use one and only one script
How are scripts stored within a Unity project?
As a C# icon in the scene tab
As a “.script” file in your main project folder
As an object in the Hierarchy tab
As an asset in the Assets list
When you create a new script component, the script code window will be blank. You will need to write ALL of the code for the script.
False
True
What do you see in the “Solution Explorer” panel of the Visual Studio IDE?
A list of all sprites in your project
A list of all GameObjects in your project
A list of all script files in your project
A list of all images in your project
Why is it recommended to place all scripts in a sub-folder within the Assets area?
Scripts are not located in the Assets area at all
To help keep your assets organized in a larger projects
Scripts will run faster when they are properly stored in a Scripts folder
Because Unity requires all scripts to be placed in a Scripts folder
What is the purpose of a C# namespace?
To help group together and identify related objects, often written by one person or company
To help identify the space where an object will be placed on the screen
To help identify source code authors in the a comments block
To give unique names to each sprite object
What do we call an object in C# code?
Class
Widget
File
Namespace
What symbols does C# use to start a short, one-line comment?
##
<!—
//
**
What characters are used to mark the start and end of a block of C# code such as a class or function?
# and #
{ and }
Begin and End
/* and */
Which of the following is an example of “white-space” in a code file?
Semicolons
Letters
Numbers
Spaces, tabs and line-feeds
What is a “game loop”?
The circular motion of some sprites on the screen
A circular graphic on the screen
A function or set of statements that will run repeatedly during the game
A single line of code in a script file
How often does a game loop typically run?
Once per second
Once, at the end of the game
Once, at the beginning of the game
Around 60 times per second
What function in a C# script would you use to run one-time setup logic for a sprite?
Begin()
Start()
Update()
Initialize()
What function is called by the game loop to perform tasks needed to produce each frame on the screen?
Update()
Draw()
Start()
Awaken()
Which of the following statements would successfully display “message” to the Console?
Debug.Message(‘message’)
Debug.Log(“message”)
Console.Write(“message”)
Debug.Write(message)
What three types of values do the Transform’s Position, Rotation and Scale settings all have in common?
Width, Height, Depth
A, B, C
X, Y, Z
Speed, Velocity, Acceleration
What happens to the Transform Position settings in the Inspector panel when you move an object within a scene using the Move tool button?
The Inspector panel values are automatically updated to match
The Inspector panel values are unchanged
The Inspector panel values become negative
The Inspector panel values are reset to zero
Considering the function call “Secret.Mystery(A, B);”, which of the following answers shows the data values getting passed into the function?
None of these are true
A, B
Secret
Mystery
Which of the following is the unique C# name of the Transform object that is assigned to each sprite?
myTransform
transform
Trans
Which of the following answers describes the correct order for the three parameters in the Translate() function?
z-change, y-change, x-change
z-change, z-change, y-change
y-change, x-change, z-change
x-change, y-change, z-change
Which of the following values are valid changes in the X or Y position when calling the Translate() function?
0.0f
-1.0f
All of these are true
1.0f
Which of the following Translate() values for changes in the X or Y position will move the sprite a larger distance (more rapidly) across the screen?
0.0f
0.5f
1.0f
-0.01f
Which of the following approaches will best move an object slowly and smoothly across a screen while the game is running?
Set the initial X and Y Position values in the Inspector panel to small values
Use the Move tool button to slowly drag the object across the screen
Make large changes to X and Y positions from within the Start() function
Make small changes to X and Y positions from within the Update() function
Which of the following rotation values will spin an object 30 degrees in the clockwise direction (to the right)?
0.30
30
-30
0
How many degrees are there in a full circle?
180
90
45
360
Which of the following Rotation settings is most likely to be used to spin an object in a 2D game?
localScale
X
Y
Z
Which of the following function calls will successfully rotate a sprite in a 2D Unity game?
transform.Rotate(0, 0, 5.0f);
transform.Rotate(0, 0, 1.0f);
transform.Rotate(0, 0, -3.0f);
All of these will work, just with different directions and angles
If you want to double the size of a sprite in the X and Y directions, what Transform Scale settings should you use?
X = 1, Y = 1, Z = 1
X = 0.5, Y = 0.5, Z = 1
X = 2, Y = 2, Z = 1
X = 1, Y = 1, Z = 2
Why does the Unity Input Manager define two sets of axes for things like “Horizontal” or “Fire1”?
To support 2-player games
This is a known problem in the Input Manager that will be fixed
So one player has multiple input options for the same command
As a backup in case the first input device breaks
If the “left” arrow key is assigned to the Negative Button on the Horizontal axis, what kind of value will be produced when the user presses the left arrow key?
Very large
Negative
0
Positive
How do you assign a specific key to an input axis in the Input Manager?
Hold down the key for 5 seconds in the Input Manager
Drag a picture of the key to the target command in the Input Manager
Type in the key name such as “a” or “space” or “left” to the right of the command in the Input Manager
All of these will work
Where should you write code to check for user input?
Inside a C# script’s Draw() function
Inside a C# script’s Start() function
Inside a C# script’s Update() function
Inside a Transform component’s Inspector panel
What function would you call to check the current status of the input axis “Horizontal”?
Input.GetAxis(“Horizontal”)
GetHorizontal()
Input.QueryKey(“left”)
GetKeyState(“Horizontal”)
Which of the following lines of code will rotate (spin) a sprite in response to the user’s “Fire1” input?
transform.Rotate(0, 0, Input.GetAxis(“Fire1”));
Rotate(GetKey(“Fire1”));
Input.GetAxis(“Fire1”).Rotate();
transform.Rotate(Input.Fire1());
How might you decrease the speed of an object you are moving in response to user input?
Use a different set of input controls that will produce lower values
Increase the Sensitivity setting in the Inspector Panel
Remove one of the input keys assigned to that axis in the Input Manager
Lower the Sensitivity setting on the input axis in the Input Manager
Which of the following best describes the job of a “physics engine”?
To handle the logic necessary to add artificial intelligence to game objects
To help create very large virtual worlds within a video game
To help draw complex images on the screen
To handle the complex math needed to simulate realistic physical behavior of game objects
What would you do to a game object to make it react to gravity and other physical forces?
Add a Physics2D Material
Add a complex C# script
Add a Rigidbody 2D component
Add a Collider 2D component
Which of the following Rigidbody 2D component properties will change how fast an object falls in response to gravity?
Constrain - Y
Gravity Scale
Mass
Angular Drag
Which of the following Rigidbody 2D component properties would you set to freeze the position of an object in a horizontal(side-to-side) direction?
HorizontalFreeze
Constraints-X
Constraints-Z
Constraints-Y
Which of the following Rigidbody2D component properties will control the amount of air resistance an object will experience when flying through the air or falling?
Linear Drag
Angular Drag
Gravity Scale
Mass
Which of the following components would be best used to detect collisions around a pizza box in a 2D game?
Circle Collider 2D
Box Collider 2D
Edge Collider 2D
Polygon Collider 2D
Which of the following components would be best used to detect collisions around a bicycle wheel in a 2D game?
Edge Collider 2D
Polygon Collider 2D
Circle Collider 2D
Box Collider 2D
Which of the following components would be best used to detect collisions around an irregularly shaped rock?
Edge Collider 2D
Polygon Collider 2D
Circle Collider 2D
Box Collider 2D
How can you get a collider boundary to match the edge of your object image as closely as possible?
You need to add the green boundary lines to the original image file
Click the “Edit Collider” button and adjust the green boundary lines
You have to rely on Unity to automatically set the best boundaries
You need to add multiple Collider 2D components to the sprite to build up a combination of shapes that match your object
An object that wants to move based on game physics AND detect collisions should have which component(s) attached?
Rigidbody 2D only
Rigidbody 2D and Collider 2D
Collider 2D only
Physics2D only
Where do you configure “friction” and “bounciness” properties of an object?
On a Collider 2D component
On a Physics2D Material
On a Transform component
On a Rigidbody 2D component
Which of the following surfaces would likely have the highest “friction” value?
These will all have the same friction settings
Rough Sandpaper
Glass
Ice
Which of the following objects would most likely have the lowest “bounciness” value?
A beach ball
A tennis ball
A trampoline
A brick
Which of the following statements about sharing Physics2D Materials is true?
Each object has its own Physics2D Material component.
Physics2D Materials can be shared only by objects have exactly the same type of collider.
Physics2D materials are attached to a Rigidbody, and are therefore shared by all objects that use that same Rigidbody component.
Physics2D Materials are Assets that can be shared by multiple objects.
If you want to create a surface that lets objects easily slide across and bounce high into the air upon collision, what kind of “friction” and “bounciness” settings should you use?
Low friction and high bounciness
Low friction and low bounciness
High friction and high bounciness
High friction and low bounciness
Which of the following events might be used to run some scripted logic?
All of these, and more!
Player clicks on a button
Player health reaches zero
Two objects collide
Which of the following functions can Unity call in response to regular, physics-based collision event?
Collided()
Triggered2D()
OnCollisionEnter2D()
OnCollisionDetection()
Given the function below, what line of code you write to show the name of the other object involved in a collision?
void OnCollisionEnter2D(Collision2D otherObject)
Debug.Log(“Collision with: “ Collision2D.name);
gameObject.log(“Collision with: “ + name);
Debug.Log(“Collision with: “ + otherObject.gameObject.name);
Collision2D.log(“Collision with: “ + gameObject.name);
Which of the following best describes how you set up a Unity game object to call a function when a collision is detected?
Add a Collider2D component and a script with the event function to the game object
Draw a line from the object in the hierarchy panel to the function in your script
Attach a script with the event function to the game object
Attach a script with the event function to the Rigidbody2D component on the object
If you want a collision event to call a function but not cause the objects to react physically, what setting should you change?
Check the “Is Trigger” box on the collider
Check the “Transparent” box on the collider
Set the “Body Type” property on the Sprite Renderer component
Disable the “Physics2D” setting on the Rigidbody2D component
