i decided to make it simpsons themed so i changed the background to the a picture of the simpsons kitchen, as this was landscape i the had to change the size of the plane, the camera and game view
I then changed the ship to a plan and added a picture of homer simpson, at first he was a white back ground so i changed the shader to transparant so it was just his head
I then had to make new asteroids to look like vegatables
I then added 2 lots of bolts to the player as i wanted them to look like they were coming from his eyes
to get this to work i had to change the player control script
I also added a high score to the game by using this code
I added a 2nd set of asteroids in the game , by creating a 2nd asteroid prefab and changing the game controller script to this
which allows me to change the variable in unity so i can have as many asteroids as i like
I then changed all the sounds to sounds that fit the game
I then duplicated the scene to create another level, this one is harder as the asteroid move alot faster
I then duplicated the scene to create another level, this one is harder as the asteroid move alot faster
As the asteroids on the other level had different values to this one i had to duplicate thoose too and re refference them in the gam controller script
I then created a main menu so the player can choose what level they want to play
to do this i created a new scene with a background camera and lighting
i then created 2 ui buttons one for normal and one for hard
To get the buttons to work i had to make a new empty game object called manager and apply this code to it
then on the button where it says on click i sent it to the manager and the script applied to it and depend on what button it pressed it went to a different scene
to work out what scene number it was going to i went into the build settings then applied my scenes into the scene build
i then made an exit button on each scene that took you back to the main menu
here is what the game looks like now
There is still alot more stuff that i want to do to my game like a health bar, mute sound, special asteroids, but so far i think its pretty good.
No comments:
Post a Comment