Monday, October 6, 2014

Stealth Game Modifications

Modifications on Stealth Game :

  By Vamshidhar Reddy , Priyankana Basak and Preethi Chimerla

The following are the features which we included to try and enhance the User Appeal towards Stealth Game  (https://unity3d.com/learn/tutorials/projects/stealth) provided by Unity.   


  1. MultiPlayer : To make the game appealing to a wide range of people we tried to add the multiplayer concept using Network features provided by unity .

  1. Birds Eye view : We included a second camera in the game which gives a birds eye view of the player

  1. We included a obstacle similar to wall which slides in for few seconds

  1. We included a fire obstacle which blinks for few seconds and disappears.

  1. And Finally Last but not the least we included a new level to the game once the player is successful to escape from the unity lab in the game.




  1. MultiPlayer :

As part of this game we implemented the following to make it a multiplayer game.
  • Creating a Server using unity features
  • spawning as a player
  • Using state synchronization and Interpolation for network communication

We created a new empty object and named it as “NetworkManager”. As the name suggests the we added a script to the object which helps in establishing the server connection , spawning a player.
As soon as the game starts , we will be able to see two GUI buttons which we will ask to start the server or to Join the Room. If you want to be the Host of the game then start .the server or else select “Join the Room” and select the appropriate player which you are.
Screen Shot 2014-10-06 at 2.47.57 AM.png


We included the state synchronization and interpolation in the Player movement Script

The following are the snippets which we included in Network manager and Player movement

Network Manager :
Screen Shot 2014-10-06 at 2.53.47 AM.png
Screen Shot 2014-10-06 at 2.52.02 AM.png


Player Movement :


Screen Shot 2014-10-06 at 2.54.49 AM.pngScreen Shot 2014-10-06 at 2.55.02 AM.png



  1. Birds Eye View : we Included a birds eye view to the game , which is displayed in the top right side of the window

Screen Shot 2014-10-06 at 2.59.57 AM.png

We created a New object of type “Camera” and then changed its view port values to

X : 0.7 , Y : 0.7 , W : 0.4 , H : 0.4

which makes it display in the top right corner and wrote script to follow the Player

  1. We included an obstacle similar to wall which appears for few seconds and disappears. we selected a Cube and changed the scale to x: 1 y:2 z:3.62 , we added a rigid body component and selected the wall texture downloaded from the Asset Store, similartly we included another wall which will appear for time than the first wall making it difficult for the player to complete the task . We included this walls in the place of Laser 1 and Laser 2.

  1. We included a fire obstacle in the place of laser 3 which will blink for few seconds and if player tries to pass it , the game will be restarted as the player dies. We selected a particle system prefab from the asset store , added a Capsule collider and included the following script .
Screen Shot 2014-10-06 at 3.13.44 AM.png




  1. We included a New level using the asset from the Asset store.As soon as the user enters the lift, it should take him to the new level.



The look and feel of the new level is:





img1.JPG

To create this new level, we have used assets from the Unity Assets Store (https://www.assetstore.unity3d.com/en/)  

Select the asset from the store -> Download -> Import

The assets then get added to the assets folder of the project, as shown below.


There are some additions to be made to the new plane (As described in the snapshot below):

                                   

Drag the following to the add component panel of the plane :
Assets -> RocksPack -> Texture -> Ground_Diff
     Add Bumped Specular shader to the texture of the plane to give it an uneven look.




Future Enhancements : Created a Dragon in the Blender tool , which will be included as the enemy in the second level. Screen Shot 2014-10-06 at 8.09.53 AM.png




                   


No comments:

Post a Comment