Created
June 1, 2013 02:44
-
-
Save colinwren/5689115 to your computer and use it in GitHub Desktop.
Introduction to voxel.js not working
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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