Little VR bike game with Godot Engine
Follow this tutorial of the godot engine documentation.
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.
-
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=
. -
To decode this data you need protoc (download just the protoc-<version>-*.zip if you don't need to compile it yourself).
-
You'll also need the protocol description file, for google cardboard data you can find it here.
-
$ echo <insert your base 64 encoded data here> > encoded
This data should look something like this :ChJULlQuIEludGVybmF0aW9uYWwSEzNEIFZSIFZpZXdlciBEZWx1eGUdJQaBPSUK1yM9KhAAAEhCAABIQgAASEIAAEhCWAE1KVwPPToICtcjPArXIzxQAWAB
-
$ base64 -d encoded > data
This command converts the base 64 data to raw data. -
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).
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.