npm install voxel-script-gun
var scriptGun =
position variable that is the x, y, and z game coordinates of the location that the player clicked on in the game.
options can be:
container: HTMLElement that an editor will get appended tofunctionBody: string to use as the initial contents of the editor
this gets called whenever the editor contents change.
functionBody is the contents of the editor
The first time you set up, you should install the required npm packages:
cd voxel-script-gunnpm installnpm install browserify -g
Then run the start script (which you'll need to do every time you want to run the demo):
Then point your browser to http://localhost:8080 and have fun!
If you get stuck then look at the readme for voxel-hello-world