Skip to content

Faymoon/Bike-Game

Repository files navigation

Bike-Game

Little VR bike game with Godot Engine

Build

Follow this tutorial of the godot engine documentation.

VR setup

If you have a cardboard-like VR headset this game should work for it, in order to have an optimal experience consider modifying the MobileVRInterface's parameters in src/Game.cs.

For cardboard compatible headset

  1. Scan your device's QR Code with a small cardboard logo in. You'll get a link with base 64 encoded data after the p=.

  2. To decode this data you need protoc (download just the protoc-<version>-*.zip if you don't need to compile it yourself).

  3. You'll also need the protocol description file, for google cardboard data you can find it here.

  4. $ echo <insert your base 64 encoded data here> > encoded This data should look something like this : ChJULlQuIEludGVybmF0aW9uYWwSEzNEIFZSIFZpZXdlciBEZWx1eGUdJQaBPSUK1yM9KhAAAEhCAABIQgAASEIAAEhCWAE1KVwPPToICtcjPArXIzxQAWAB

  5. $ base64 -d encoded > data This command converts the base 64 data to raw data.

  6. protoc --decode=DeviceParams CardboardDevice.proto < data This command decodes the raw data to give you the wanted values and prints them into std out.

Then you can change the data in the code (don't forget that units can be differents).

GodotBluetooth

I use a modified version of this project which is under MIT license. I made a few changes in order to make it working with my project/Godot 3.2 and to debug.