Unit 8 CT

docx

School

Texas Tech University *

*We aren’t endorsed by this school

Course

1A

Subject

Physics

Date

Jan 9, 2024

Type

docx

Pages

2

Uploaded by JusticeValor12962

Report
1. When creating a 2D tile-based map or maze in Unity, how do you let Unity know which tiles represent walls and which tiles represent a background image the player can walk over? Different colors. 2. What is the difference between code listed between the braces after “Start()” and code listed between the braces for “Update()”? Provide TWO examples of types of code that would make sense to include after EACH function. The code inside the Start() function is executed once when the script is first enabled. This is often used for initialization tasks or setup that only needs to happen once at the beginning of the script's execution. The code inside the Update() function is executed every frame. This is where you typically place code for continuous tasks, such as player input, character movement, or other dynamic updates. 3. An object was given a translation of (4, -5, 8). In left, right, up, down, deeper, and shallower, how did the object move? Left: The object moved 4 units to the right. Right: The object moved 4 units to the left. Up: The object moved 5 units downward. Down: The object moved 5 units upward. Deeper: The object moved 8 units closer to the camera. Shallower: The object moved 8 units away from the camera. 4. You are starting to code a game now! Explain three of the ways the Unity game engine is helping you develop the game.
Unity handles graphics rendering. It also has a built-in physics engine. It also handles a lot of asset management. 5. What is the purpose of including comments in code? To make the code more accessible to those who will be reading it later and to leave notes for yourself if necessary.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help