• Twitter
  • Facebook
  • Google+
  • RSS Feed

Saturday, 14 March 2015

Interactivity 8- Customising my game (Part 1)

No comments:
 
After we had finished the basics, I decided to  customise my game and add some further elements. I began by customising the background to my game. I found a star texture on the internet and changed the image by colour correcting it.

Customised background.

I then imported my own ship into my game and added all of the components and scripts to it. I further customised my own ship by adding a texture and colour correcting it. 

 Spaceship in game. 

 Custom ship texture in Photoshop. 

Texture added to my ship. 

I then changed my 'GameController' script to allow multiple items tumbling down my game. To do this, Luke showed me a simple piece of code that allows more than one hazard to occur. This means I can import my own models. 







I then imported my other models I made in Maya. These were my own Asteroid and my own UFO. I imported these into my game by exporting them in Maya as 'FBX' files, and then added the textures separately. I then took the settings from the asteroid such as the the scripts and capsule collider's and moved them onto my UFO and Asteroid. 

 Copied scripts from the Asteroid to my custom asteroid. 

Edited capsule colliders for my Asteroid and UFO.

Luke then showed me how to make my UFO spin instead of tumble, so he helped me create a new script hat allows for the axis on the UFO to spin instead. 

Script in game. 

Script created to allow the UFO to spin rather than tumble. 

Multiple objects in my game. 

I then decided to change the value of each object. For example, my custom asteroid is worth '20' points rather than 10 points you get from the normal asteroid's. I also made my asteroid tumble more and fall quicker than the regular asteroid's by changing the mover speed. I also made my UFO worth 50 points and made it move even quicker and spin instead of just rotate. 



I then decided to change the bolt colour to a different colour that I felt would suit my game better. 


Changed Bolt colour to green. 

I then decided to add another asteroid to my game and change the size of it. I used the same design as the original asteroid however I increased the speed, points value and tumble speed to make it more difficult to shoot. 

Smaller Asteroid prefab. 

Changed settings. 

 I then customised my UFO more by making the explosion sound effect different to the asteroid's. To do this, I used a different sound prefab. This was 'explosion_enemy' rather than 'explosion_asteroid'.


To develop my game further I plan on making a start menu and pause menu. 

No comments:

Post a Comment

 
© 2012. Design by Main-Blogger - Blogger Template and Blogging Stuff