click below
click below
Normal Size Small Size show me how
VGD3 Final Review
Question | Answer |
---|---|
Which two components do you need to play a sound in Unity? | Audio Source, Audio Clip |
What's one way to change an object's x position in a 2D game? | gameObject.transform.position = new Vector2(2.7f, 0.0f); |
This original framework for game development project management was given this name because of the way all the tasks flowed together and if anything went wrong it was like falling off a cliff. | Waterfall |
Which component handles the gravity effects on an object? | Rigidbody or Rigidbody2D |
In broad terms, the system by which the player communicates with the game and the game supplies feedback to the player is called the game's what? | Interface |
Which method do you use when you want a stream of shots instead of just one when the "X" key is pressed? | (Input.GetKey(KeyCode.x)) |
True or False: When you do a Unity build for iOS with a Windows PC, you still need to run it through Xcode on a Mac computer in order to complete the build process and migrate it to your iOS device. | True |
True or False: It's OK to mix 2D and 3D physics components in your game as long as they are on separate objects. | False |
True or False: You are limited to using the three typefaces that come with Unity for use in your projects. | False |
How do you convert an OBJECT into a PREFAB? | Drag the object from the Hierarchy View to the Project View. |
Which variable type is best for holding a value of 20? | Integer (int) |
Which variable type is best for holding a value of "blue"? | String |
Which variable type is best for holding a value of true? | Boolean (bool) |
Which variable type is best for holding a value of 2.5? | Float Point Decimal (float) |
Which variable type is best for holding a value of (5.2f, 6.0f)? | Vector2 |
In C#, a variable's name must begin with what? | A letter |
Complete this code to declare a variable named attack of type integer and assign 20 to it. _______ attack; attack ______ 20; | int, = |
What does x += 7 mean? | x = x + 7. The new value of x is the old value of x plus seven. |
What is the console output of this code? int x = 6; x++; Console.WriteLine(x); | 7 |
How many times will this loop run? for (x=1; x < 7; x+=2) { Debug.Log (x); } | 3 |
What will result from this code? void onCollisionEnter (Collision other) { Destroy (other.gameObject); } | The object you collided with will be removed from the scene. |
In order to instantiate an object in a scene using a C# script, the object must be . . . | A prefab |
What is the defining characteristic of a literal? | Its value is constant. It does not change like a variable. |
What does this code do? SceneManager.LoadScene(0); | Loads the first scene in the Build Settings list |
What two characters do I need to type to comment out a line of text so that the computer will ignore it? | // |
What do we call the name a programmer gives a variable or method? | An identifier |
What does this code do? private string[] names; | Initializes a string array called names |
Name two ways you can find and identify a particular gameObject with a script. | By its NAME or TAG |
myRigidbody.AddForce(new Vector3(transform.up) * theForce, ForceMode.Impulse); will push the gameObject along which axis? | Y |
True or False: Game development is a lot more work than you ever thought it would be. | Probably true. |