First Deck Flashcards
(7 cards)
Vertical and Horizontal aspect ratio
Vertical is an object taller than its width, and horizontal is an object whose width is wider than its height
What’s the purpose of Time.deltaTime
To make the game for everyone the same so it doesn’t affect the gameplay for people with different fps. Does not change the frame rate.
Converting position of camera view to world space
The method ViewportToWorldPoint takes the coordinates from the camera’s view and converts them to world space coordinates, to determine the exact position in the game world.
Where do we map our buttons
Project settings, and in the left hand side, input manager and axis
Calling a Coroutine
StartCoroutine(PrintAndWait()
Creating a Coroutine
private IEnumerator PrintAndWait()
{ yield return new WaitForSeconds(3);
}
Troubleshoot laser shredder
Does it have the shredder script?
Does it have a 2D collider?
Is the Is Trigger on?