Skip to content

Instantly share code, notes, and snippets.

@colinwren
Created June 1, 2013 02:44
Show Gist options
  • Select an option

  • Save colinwren/5689115 to your computer and use it in GitHub Desktop.

Select an option

Save colinwren/5689115 to your computer and use it in GitHub Desktop.
Introduction to voxel.js not working
var createGame = require('voxel-engine');
var game = createGame();
var container = document.body;
game.appendTo(container);
var createPlayer = require('voxel-player')(game);
var dude = createPlayer('dude.png');
dude.possess();
dude.position.yaw(0, 100, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment