PHOBOSLAB

Blog Home

Xibalba & WebVR

WebVR is an effort of Mozilla and Google to enable Virtual Reality content on the web. Experimental builds of Chromium and Firefox that provide a JavaScript API for WebVR have been available for a while now.

My game Xibalba already provided a stereo rendering mode and supported an external tracking server to get orientation updates from the VR headset, but it was clumsy and only worked for the old Oculus Rift DK1. So I decided to ditch the old stereo rendering mode and implement WebVR proper.

Xibalba VR

WebVR handles the distortion for the Headset by itself. All you have to do is render your game into a side-by-side stereo format and request fullscreen mode on your Headset. Orientation updates are provided by a nice, clean API that's easily implemented in the game.

I also added support for the JavaScript Gamepad API with a Plugin for Impact – the game plays great with a XBox360 Gamepad, even if you don't have an Oculus Rift.

Play the game here: phoboslab.org/xibalba/

If you have a DK2 but no WebVR enabled build of Chrome or Firefox, you can also try a standalone Windows version of the game. It's essentially a Chromium build bundled with the game and batch file to start it. Makes it a bit easier to get going.

Download: xibalba-vr.zip ~80mb

Monday, February 2nd 2015
— Dominic Szablewski, @phoboslab

8 Comments:

#1 – AwesomeLuke22 – Saturday, March 14th 2015, 20:27

Xibalba is the best game ever!!!!!!!!!!!
It's awesome!!!!!!!!!!!

#2 – Esteban – Tuesday, March 31st 2015, 09:58

Unrelated to the post itself: it seems the RSS feed is now invalid because of an unescaped ampersand. Can you have a look? Thanks!

#3friv 2015 – Tuesday, March 31st 2015, 18:13

I live Xibalba is the best game ever...........

#4Dominic – Saturday, April 4th 2015, 01:32

Thanks Esteban. Should be fixed now!

#5Lucasgold – Saturday, April 18th 2015, 16:35

At the download it says me:
404 File not found!

:(

#6 – JO JO JOSH – Friday, May 15th 2015, 01:23

can you make this mutiplayer, my friends would love that. My whole school plays this game ! Please make it mutiplayer .I LOVE THIS GAME!!!!! And can you make it have a longer story,like more levels and bosses.

#7robert – Tuesday, July 7th 2015, 10:35

It's essentially a Chromium build bundled with the game and batch file to start it. Makes it a bit easier to get going.

#8Sandeep – Tuesday, July 7th 2015, 11:05

I also like to support for the java script games, because Orientation updates are provided by a nice, clean API that's easily implemented in the game. It’s easily the most polished WebVR game available. Chances are very high that if there is an issue with the game it's due to quirks in the WebVR-enabled browser builds rather than the game itself. It’s really nice games.

Post a Comment:

Comment: (Required)

(use <code> tags for preformatted text; URLs are recognized automatically)

Name: (Required)

Please type phoboslab into the following input field or enable Javascript. This is an anti-spam measure. Sorry for the inconvenience.