Social VR – Drawing Game

We each created a “drawing game” with the Oculus Virtual Reality headset, using the Steam VR Input package – a recent update that makes it easier for developers to tailor specific events upon player using different controller button inputs.

In the game, the player can pick a paint color and then paint by pressing a button on one of their controllers. In the code, pressing a button is linked to a script’s specific draw() function which instantiates many prefabs of a sphere, creating an illusion of painting.

Here’s a small piece of documentation. Code is on Github here.

 

Social VR – First Person Shooter Tutorial

Here is a link to my assignment that recreates Unity’s first person shooter tutorial.

The Unity tutorial is found here.

Screen Shot 2018-10-05 at 11.33.46 AM.png

We covered setting up the Player GameObject and Camera and Lighting, and wrote code to move the player on keyboard press, and instantiate prefabs of laser shots when shooting. Then we added asteroids, and wrote code to keep track of game events, such as destroy asteroids upon collision with laser shots, instantiating asteroids in waves, counting points and displaying the score using the GUI interface. I went ahead and built the game for the web. The code is saved on my server and available here.