This is a collaborative multiplayer virtual reality tower defense game built for the Oculus Rift on Windows using modern OpenGL. Bring your friends and join the fun-filled adventure of crushing castle crashers and defending your valuable treasure as heroic archers!
Here's a quick video demonstration of the game.
Link: https://www.youtube.com/watch?v=0salJ3tKCK0
In order to make this game, we used a couple of third party libraries in assisting with
audio and networking. You can run the game as is on Visual Studio using the pre-compiled
libraries located in shared/ or you can re-compile the libraries yourself following
these instructions.
The libraries we used are listed below
- Oculus Rift SDK - Interacting with the Oculus Rift
- OpenAL-Soft - Audio
- rpclib - RPC library for C++
- Install Visual Studio
- Use
Desktop development with C++
- Use
- Install the Oculus Rift Software
- Start game server
- Open
server/TowerDefender_Server.slnon Visual Studio - Change Solution Configurations from
DebugtoRelease - Make sure Solution Platforms is
x64 - Press
F5to run code- You will be prompted for a port number to use. (Eg. 8080)
- Open
- Have player 1 join the game session
- Open
client/TowerDefender_Client.slnon Visual Studio - Change Solution Configurations from
DebugtoRelease - Make sure Solution Platforms is
x64 - Link Dynamic-Link Libraries (dll)
- Press
Alt+Enterto go to Project Property Page - Go to
Configuration Properties->Debugging - Set "Environment" to
PATH=%PATH%;$(SolutionDir)..\shared\lib - Click
ApplyandOK
- Press
- Press
F5to run code- You will be prompted for the IP address of the server
- You will be prompted for the port number of the server
- Open
- Have player 2 join the game session
- On a different computer, repeat step 4
- Audio - Sound will only play from default speaker
- Temporary Solution: Change default speaker to the Oculus Rift
