Skip to content

Instantly share code, notes, and snippets.

View apkizer's full-sized avatar

Alex Kizer apkizer

View GitHub Profile
@apkizer
apkizer / index.js
Created April 18, 2013 22:39
voxel.js game
var createGame = require('voxel-engine')
function sphereWorld(x, y, z) {
// return the index of the material you want to show up
// 0 is air
if (x*x + y*y + z*z > 15*15) return 0
return 3
}
var game = createGame({