Skip to content

Commit

Permalink
0.3.5 - remove demo
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed Jan 24, 2013
1 parent 786cbf9 commit 29d81f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
17 changes: 10 additions & 7 deletions lib/game.js → index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
var voxel = require('voxel')
var voxelMesh = require('voxel-mesh')
if (process.browser) var interact = require('interact')
var Detector = require('./detector')
var THREE = require('three')
var Stats = require('./stats')
var playerPhysics = require('player-physics')
var requestAnimationFrame = require('raf')
var Stats = require('./lib/stats')
var Detector = require('./lib/detector')
var inherits = require('inherits')
var path = require('path')
var EventEmitter = require('events').EventEmitter
if (process.browser) var interact = require('interact')
var playerPhysics = require('player-physics')
var requestAnimationFrame = require('raf')
var collisions = require('collide-3d-tilemap')
var aabb = require('aabb-3d')
var defaultTextures = require('painterly-textures')

module.exports = Game

Expand All @@ -33,7 +35,7 @@ function Game(opts) {
}
}
this.THREE = THREE
this.texturePath = opts.texturePath || './textures/'
this.texturePath = opts.texturePath || defaultTextures(__dirname)
this.cubeSize = opts.cubeSize || 25
this.chunkSize = opts.chunkSize || 32
this.chunkDistance = opts.chunkDistance || 2
Expand Down Expand Up @@ -62,7 +64,8 @@ function Game(opts) {
[Infinity, Infinity, Infinity],
[-Infinity, -Infinity, -Infinity]
)
// client side only (todo: use better pattern than this)

// client side only
if (process.browser) {
this.initializeRendering()
Object.keys(this.voxels.chunks).map(function(chunkIndex) {
Expand Down
13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "voxel-engine",
"main": "lib/game.js",
"version": "0.3.4",
"version": "0.3.5",
"repository": {
"type":"git",
"url": "[email protected]:maxogden/voxel-engine.git"
Expand All @@ -17,13 +16,7 @@
"toolbar": "0.0.2",
"voxel-texture": "0.2.2",
"collide-3d-tilemap": "0.0.1",
"aabb-3d": "0.0.0"
},
"devDependencies": {
"minecraft-skin": "0.0.1",
"browservefy": "0.0.0"
},
"scripts": {
"start": "echo \"open localhost:8080/\" && cd demo && ../node_modules/.bin/browservefy demo.js 8080 -- -d"
"aabb-3d": "0.0.0",
"painterly-textures": "0.0.3"
}
}

0 comments on commit 29d81f5

Please sign in to comment.