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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Your company has 1,500 desktop computers running windows 7. you want to upgrade them to windows 10. which type of microsoft license would be best suited in this situation?
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
You know the right answer?
What kinds of variables are accessible from outside of the class?

general

spec...
Questions
question
Mathematics, 17.03.2020 22:03
question
Mathematics, 17.03.2020 22:03
Questions on the website: 13722361