WebVR BabylonJS Snake VR

Prerequisites

What is BabylonJS and CannonJS?

BabylonJS is a complete JavaScript framework for building 3D games and experiences with HTML5, WebGL, WebVR and Web Audio.

CannonJS is a physics engine, written in JavaScript. And what is a physics engine you might ask? Well its "software that provides an approximate simulation of certain physical systems, such as rigid body dynamics (including collision detection), soft body dynamics, and fluid dynamics, of use in the domains of computer graphics, video games and film."

What is TypeScript?

TypeScript is a typed superset of JavaScript the compiles to plain JavaScript. TypeScript starts from the same syntax and semantics that millions of JavaScript developers know today. Use existing JavaScript code, incorporate popular JavaScript libraries, and call TypeScript code from JavaScript.

TypeScript compiles to clean, simple JavaScript code which runs on any browser, in Node.js, or in any JavaScript engine that supports ECMAScript 3 (or newer).

Get Started

This repo has two options.

  1. Fork and start building on what is here and do a PR with changes
  2. Follow the step by steps instruction to build out the current state of the game. (PS: Its not done yet!)

Option 1: Steps to Run this Project

Clone the repo
git clone https://github.com/cassieview/SnakeVR.git

Install packages
npm install

Build Project
npm run build

Run the project
npm start

Open in VS Code
code .

Option 2: Steps to Build this Project!

Step 1 - Clone starter template project and create scene
Step 2 - Project Architecture
Step 3 - Host on Azure

Resources

BabylonJS

Babylon Playground
Babylon Docs

A step-by-step guide to build the Exploding Spheres game!

Build the Exploding Spheres Game

Game starter template

BabylonJS Webpack TypeScript Starter Project