First of all, I had to create a setting for my game. To do this, and also because my game is set in outer space, All I felt I needed was a few simple boxes for the "walls" (which I used the starry texture that I used for the UFO window and the planet rings) and floor, which I used a crater texture for. I also built a wall in the middle of my stage, and applied a rocky texture to it, which is very similar to, if not the exact same as my space rock texture I used for my not exploding planet. I also wanted to add a Skybox which I think was in the "Edit" menu, and I added the sky texture I wanted. Although first I had to insert the Skybox textures package that is built in to Unity, and then choose the texture I wanted, in this case, it was a starry sky, to match my space theme.
The Crater texture I used in my game
Next, it was time to import my 3D Models into the game. I started with importing my weapon I was going to use and making sure that worked fine before working on the targets. I also had to create a bullet for my gun (for this, I just created a small sphere, since I didn't really think it would matter too much what my bullet looked like since it would be moving so quickly and I would have hoped people would focus more on the gameplay than anything else.) For the bullets to work, I had to attach a few scripts to the bullet, so that they would disappear on contact and also destroy things that come into contact with the bullet, and make sure people couldn't really see the solid bullet in front of the screen. I also had to attach my gun model to the main camera, so it follows the main camera.
After my weapon was all sorted, I added a few of my targets. Because I was thinking I had loads to do before my game was complete, I was advised to only import 4 targets for the time being, so, if I ran out of time, at least I would have a working game with a few targets. After importing these targets, I had to attach target scripts to each of my targets, so they would explode and get "killed" when they collided with the bullets. I also wanted to add an explosion effect after each of my targets got destroyed, so I used an explosion package for Unity and chose an explosion I felt was appropriate.
Next, I needed to animate the targets. I first had to watch a video on YouTube before I could start animating my targets so I actually knew how to animate the targets. I found this video very informative, clear, thorough and useful in how to animate things in Unity. After that, I surprised myself with how quickly I managed to pick up how to animate my targets. At this point I decided to add a few more targets to my shooting scene I actually enjoyed animating my targets, and I was really surprised about how creative I found animating in Unity. Despite me struggling with animating a few of my targets, because some of the animating pegs were quite far apart, I felt quite comfortable with how most of my models had been animated.
http://www.youtube.com/watch?v=dHuaXzgv23A&list=FLzRu0iYEfpNZkqrpiszGkdQ&index=9
This video helped me immensely with animating my targets, and developing my entire game. Many thanks to this guy!
After all of this, I decided to look for some appropriate sound effects and some background music for my game. I found this quite exciting, but I knew I couldn't spend ages looking for the perfect sound effect, since I did need to complete my game. Having said that, I feel very happy with the sound effects I managed to choose, and I felt I found some very appropriate background music.
http://www.youtube.com/watch?v=tB1Z338gcsU
Background music for my main game. I felt this sounded very appropriate and definitely sounds like it's meant to be from a sci fi game setting.
After I had done this, I had to learn how to put a timer into my game, so my game has a time limit to destroy all the targets. To do this, I had to use a timer script and I also had to create two alternate end scenes; A Win scene (for when you destroy all the targets within the time limit) and a Lose scene, where you fail to shoot all the targets in the time limit, so the game will have somewhere to go to when it ends. For this I also had to add sounds/background music for these end scenes, and I also wanted to use a more interesting looking font than the default font (Arial). I ended up using a Batman themed font for my game, as I felt it matched the theming of my game very well and I felt it was a very nice looking font, basically.
http://www.youtube.com/watch?v=_RmC6aF4WjY&list=FLzRu0iYEfpNZkqrpiszGkdQ&index=2
A sound effect I used for my Fail scene, which is from a game I remember playing a lot in my childhood, Crash Bash (PS1)
After this, I felt I had a very good working game! Just needed to create a start screen and then my game was complete!
No comments:
Post a Comment