subject

What kinds of variables are accessible from outside of the class?

general

specific

public

private
2. What system of victory relies on big victories which can only be achieved when a number of other, smaller victories have been achieved first?
nested
tiered
hierarchical
pyramidal
3.What is a law in the game code which prevents a certain action or dictates a consequence or result of an event?
mechanic
contract
rule
game state
4.What is odd about the following lines of code?

if (collision. collider. gameObject. tag == "EnemyHead")

{

if (transform. position. y >= collision. collider. transform. position. y + 0.9f)

{

Destroy(collision. collider. transform. parent. gameObject);

Destroy(collision. collider. gameObject);

GameManager. score += 100;

}

else if (collision. collider. gameObject. tag == "EnemyBody")

{

GameManager. lives += 1;}

jumping on an enemy’s head doesn’t do anything
the player is penalized for jumping on an enemy’s head
simply walking into an enemy will destroy the enemy
walking into an enemy will reward the player
5.Before using a variable for something, you need to declare and initialize the variable by including lines of code in a set of curly brackets {}.
True
False
6.What is the best description of a system where enemies become alert and then pursue and attack the player when a player avatar approaches them?
It’s a game mechanic.
It’s a game rule.
It’s neither a mechanic nor a rule.
It’s both a mechanic and a rule.
7.What kind of class would make the most sense to use for tracking a player’s points or score in a game?
dynamic
static
emergent
immersive
8.In a game with no lives, the following code would reward a player for avoiding enemies completely instead of destroying them.

if (collision. collider. gameObject. tag == "EnemyHead")

{

if (transform. position. y >= collision. collider. transform. position. y + 0.9f)

{

Destroy(collision. collider. transform. parent. gameObject);

Destroy(collision. collider. gameObject);

GameManager. score -= 100;

}

True
False
9.By default, what scenarios does the OnCollisionEnter method cover?
collisions with enemies
collision with the environment
collisions with specified “collide” classes
any collision the player avatar enters into
10.What is a common reward to encourage players when they make a “correct” action in a game?
adding points to a score
losing a life
restarting a level
adding more enemies

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, amaliabarrera9
The can be used to paste text in any order
Answers: 1
image
Computers and Technology, 22.06.2019 15:00, miracle9704
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, mahaleyrenee1195
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
image
Computers and Technology, 23.06.2019 00:30, amy20021
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies. pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
You know the right answer?
What kinds of variables are accessible from outside of the class?

general

spec...

Questions in other subjects:

Konu
Social Studies, 13.11.2020 14:00
Konu
Mathematics, 13.11.2020 14:00
Konu
Mathematics, 13.11.2020 14:00