In part 1 of this tutorial we started a new Unity 3D project to create a space game with the goal of shooting asteroids.
In part 2, we added the controls to our player/ship so that it can move within the environment as well as the objects that will become our asteroids and bullets.
In part3, we covered adding the script for the bullet, making explosions, and a little bit of troubleshooting.
In this final tutorial we will setup the game for winning and losing and deploy the game for a web environment.
Video Clip:
Game Creation with Unity3D - Part 5
Runtime
17:04
View count
5,102
Scripts:
(Final) Player script:
var playerSpeed:int;
var bullet:Rigidbody;
var playerLives:int;
static var playerScore:int;
function OnGUI(){
InstructionText=”Instructions:\nPress W and S to move\nRight Mouse to change Direction\nSpacebar to fire”;
GUI.Label(Rect(10,10,200,200),InstructionText);