Unity Roll a ball Game Lesson 1 Moving the Player - jasonweibel/HyperStream-Unity GitHub Wiki
Hyperstream : Unity Roll-a-ball Game - Lesson 1 - Moving the Player
Lesson
-
Open 'Roll-a-ball - Lesson 1 - Moving the Player' project in Unity.

-
Open PlayerController Script
-
Uncomment speed variable

-
Uncomment Fixed Update method

-
-
Return to Unity, select the player object and find the Player Controller script in the Inspector Window. Speed parameter should be visible, have students change it and play the game. Let them find a speed they like.

-
Finished Player Inspector Window

-
Run Game
Challenge
- Change the ball speed.
- Create a new material and change the ball color.
- Add a second ball, third, fourth, and so on.
- Change the size of the ball
- Change the size of the wall
- Change the size of the ground.
- Add a circle collider to the ball
- Add code to make the ball jump.
Attachments:
image2017-7-12_7-22-19.png (image/png)
image2017-7-12_7-23-32.png (image/png)
image2017-7-12_7-24-10.png (image/png)
image2017-7-12_7-24-31.png (image/png)
image2017-7-12_7-24-58.png (image/png)