Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to use stackgl (ndarray/gl-modules) instead of three.js (needs testing; help welcome) #103

Open
wants to merge 271 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
7d487ac
Add sprint keybinding (tab)
deathcap Nov 30, 2013
96647ac
Update dependencies to use my branch of voxel-view
deathcap Dec 1, 2013
540e622
Merge remote-tracking branch 'origin/master'
deathcap Dec 1, 2013
cf312ce
Merge remote-tracking branch 'wraithan/readme-cleanup'
deathcap Dec 1, 2013
586908e
Update example defaults in readme
deathcap Dec 1, 2013
47a05ba
Revert to pre-atlas voxel-texture. Fixes https://github.com/deathcap/…
deathcap Dec 3, 2013
c845d3f
Dispose of any mesh, instead of current mesh -- allows for dynamicall…
deathcap Dec 8, 2013
22ecba9
Add missing delete for wireMesh
deathcap Dec 8, 2013
4ef7f94
Remove available mesh type from scene, instead of current mesh
deathcap Dec 8, 2013
b3206df
Add showAllChunks() to re-render all chunks
deathcap Dec 8, 2013
c674690
Don't load materials on initialization if none given. Allows for dyna…
deathcap Dec 11, 2013
096617f
Remove unnecessary changes added in texture atlas revert
deathcap Dec 12, 2013
4d7ac54
Update to use my branch of voxel-texture
deathcap Dec 12, 2013
58967db
Use more compatible texture API
deathcap Dec 12, 2013
97b9906
Add option to enable or disable texture atlases
deathcap Dec 12, 2013
d7da1f4
Revert "Don't load materials on initialization if none given."
deathcap Dec 12, 2013
791c74a
Change to use kb-bindings instead of kb-controls
deathcap Dec 26, 2013
a563fa3
Update to kb-bindings 0.0.5
deathcap Dec 26, 2013
0c4d54c
Merge branch 'upstream' - update to 0.20.0
deathcap Dec 28, 2013
19d99da
Add opts appendDocument and exposeGlobal for convenience
deathcap Dec 30, 2013
b20be5a
Update to use my branch of 'voxel'
deathcap Jan 3, 2014
0d5a809
Add git commit revisions
deathcap Jan 3, 2014
80e625f
Update voxel - add transgreedy mesher
deathcap Jan 3, 2014
b6bff6d
Update voxel-texture - add greedy mesher + atlas texturing support
deathcap Jan 12, 2014
76123a2
Update voxel-texture - adds 4-tap sampling
deathcap Jan 12, 2014
990e941
Revert "Change to use kb-bindings instead of kb-controls"
deathcap Jan 14, 2014
61177bd
Add options to specify kb and texture modules to use
deathcap Jan 14, 2014
0c1a787
Pass through artPacks option to texturer and Update voxel-texture
deathcap Jan 18, 2014
a8ef28f
Increase atlas size to 2048x2048 from 512x512
deathcap Jan 19, 2014
37bacfb
Restore support for voxel-texture 0.5.6
deathcap Jan 19, 2014
98e25e3
Add support for multiple texture modules
deathcap Jan 19, 2014
500427b
Revert "Increase atlas size to 2048x2048 from 512x512"
deathcap Jan 20, 2014
56b99f9
Texture engine was not being initialized properly.
greenlion Jan 25, 2014
e26ef6e
Merge pull request #1 from greenlion/master
deathcap Jan 28, 2014
c82bdef
Update to voxel-texture 0.5.8
deathcap Jan 29, 2014
8a65845
Merge branch 'master' of github.com:deathcap/voxel-engine
deathcap Jan 29, 2014
6643f87
Fix process.browser -> this.isClient in material loading
deathcap Jan 30, 2014
c081cdd
Merge branch 'upstream'
deathcap Feb 13, 2014
dca59e5
Revert remnants of reverted non-atlas texture changes, reduce upstrea…
deathcap Feb 13, 2014
548ca12
Update voxel-physical to my fork, with fall distance calculation
deathcap Feb 15, 2014
bde4d9f
Add arrayTypeSize option, alternative to passing constructor in array…
deathcap Feb 15, 2014
b77675d
Remove kb_module option, since it cannot be JSON-serialized
deathcap Feb 16, 2014
7d9d7ff
Use transgreedy mesher, fixes voxel transparency
deathcap Feb 23, 2014
2e35ba3
Update voxel, voxel-control
deathcap Feb 23, 2014
fccb268
Load textures through artpacks module
deathcap Mar 4, 2014
31b97a3
Add missing artpacks dependency
deathcap Mar 6, 2014
d59de8e
Update artpacks, voxel, voxel-mesh
deathcap Mar 11, 2014
3a42408
Update artpacks - add static foliage colorization
deathcap Mar 14, 2014
37210a5
Merge branch 'upstream'
deathcap Mar 15, 2014
86a775f
Fix invalid JSON
deathcap Mar 15, 2014
6e2be12
Merge branch 'deathcap/master' into ndarray
deathcap Mar 22, 2014
5bdbe09
Update dependencies to my ndarray branches
deathcap Mar 22, 2014
487bd65
Replace game-shell-orbit-camera with game-shell-fps-camera
deathcap Mar 30, 2014
aaba84d
Remove UI controls
deathcap Mar 31, 2014
531a758
Change magnification filter to NEAREST, fix fuzziness
deathcap Apr 1, 2014
709bf38
Update dependencies
deathcap Apr 1, 2014
9450ad7
Update createVAO for gl-vao ~1, attributes now before elements
deathcap Apr 1, 2014
0defc9e
Merge pull request #1 from deathcap/deps
mikolalysenko Apr 1, 2014
64942e4
Update dependencies - Merge branch 'master' into simple
deathcap Apr 2, 2014
17221c7
Remove --open from beefy
deathcap Apr 3, 2014
9a2655d
Rename to game-shell-voxel
deathcap Apr 3, 2014
c47bb93
Remove html, use default from beefy
deathcap Apr 3, 2014
4f2c0be
Remove examples except for terrain
deathcap Apr 3, 2014
f458a87
Show an error message and link to get.webgl.org on gl-error
deathcap Apr 3, 2014
27afdcb
Add demo.js, change main.js to export shell
deathcap Apr 3, 2014
91d0901
Show wireframe when F is held down
deathcap Apr 3, 2014
1f0ade0
Load plugins
deathcap Apr 3, 2014
f580511
Reduce globals
deathcap Apr 3, 2014
b30ffe2
Add voxel-plugins-ui plugin
deathcap Apr 3, 2014
857e5df
Specify a better default camera position
deathcap Apr 3, 2014
f9a5bcc
Add some documentation
deathcap Apr 3, 2014
0cbd807
Add voxel-registry
deathcap Apr 3, 2014
589ee00
Load textures with dynamic atlas built from voxel-stitch. Closes GH-1
deathcap Apr 4, 2014
a37235d
Fix cobblestone -> stone
deathcap Apr 5, 2014
ba98d3b
Add multiple textures for grass block
deathcap Apr 5, 2014
25a00cb
Grass block last
deathcap Apr 5, 2014
ec90df3
Move sample blocks to a plugin
deathcap Apr 5, 2014
d51606f
Generate mipmaps only once all textures are loaded. Closes GH-1
deathcap Apr 5, 2014
8469c1f
Add missing sample blocks file
deathcap Apr 5, 2014
d1448ea
Add voxel-drop plugin to demo, drop a resource pack to load textures
deathcap Apr 5, 2014
8900b7a
Remove isabella-texture-pack
deathcap Apr 5, 2014
111bca3
dat-gui is a devDependency
deathcap Apr 5, 2014
18532ed
Change beefy port to 9999
deathcap Apr 5, 2014
d4d7037
Update to game-shell-fps-camera and voxel-stitch ^0.1.0
deathcap Apr 5, 2014
b3a6350
Update to ao-mesher with per-side textures
deathcap Apr 5, 2014
d14171c
Add a multi-colored wool block for testing side textures
deathcap Apr 5, 2014
7a70ebf
Unique colors on each wool block face
deathcap Apr 5, 2014
77b3549
Update ao-mesher - fixed side calculation
deathcap Apr 5, 2014
8a27540
Add tree to terrain to show transparency
deathcap Apr 5, 2014
a612262
Update to a-mesher ^0.2.10
deathcap Apr 5, 2014
81b6e9b
Rename examples to terrain
deathcap Apr 6, 2014
616687e
Add OAPQUE in terrain.js for clarity
deathcap Apr 6, 2014
3edecff
Export only terrain
deathcap Apr 6, 2014
39fcd28
Lookup block indices for terrain generation; change to export a funct…
deathcap Apr 6, 2014
85932eb
Refactor opaque bit to use 'transparent' block registry property
deathcap Apr 6, 2014
9935fe7
Remove createVoxelMesh caching since it is now only called once
deathcap Apr 6, 2014
a68172d
Change clear color to a light blue sky
deathcap Apr 6, 2014
b56e8bc
Fix voxel-stitch version, ^0.2.0
deathcap Apr 6, 2014
de16405
Add a block with a high index (255) as a test
deathcap Apr 6, 2014
bd66947
Increase block index from 8-bit to 15-bit (all but 1-bit opaque flag)…
deathcap Apr 6, 2014
2018982
Add glass, another transparency test
deathcap Apr 6, 2014
7152f66
Add lake as a (failed) semi-transparent alpha blending test
deathcap Apr 6, 2014
136c589
Update ao-shader with alpha, re-enable alpha blending test
deathcap Apr 6, 2014
da25ce1
Merge branch 'upstream'
deathcap Apr 6, 2014
d06e113
Update to three.js 0.58.10
deathcap Apr 6, 2014
55c05c6
Update to artpacks ^0.3.1 and voxel-control
deathcap Apr 7, 2014
3132e68
Update to three.js 0.66.2, ref GH-74
deathcap Apr 7, 2014
8f4c306
Expose shell through game.shell, instead of using shell as game insta…
deathcap Apr 8, 2014
604bff6
Add working kb-bindings-ui plugin, configurable keybindings
deathcap Apr 8, 2014
3068165
Update to gl-now ^1.3.0, and misc patch fixes
deathcap Apr 8, 2014
c9247d2
Add voxel-keys plugin
deathcap Apr 9, 2014
8392e70
Fix z-order, add voxel-artpacks for testing
deathcap Apr 9, 2014
7ec75fa
Update to voxel-artpacks ^0.1.0, more game-shell support
deathcap Apr 10, 2014
42159f7
Update to voxel-stitch 0.2.2, texture pack changing fixes
deathcap Apr 11, 2014
648b64d
Start updating to use rect-mip-map
deathcap Apr 12, 2014
459ac76
Move texture2d creation to voxel-stitch
deathcap Apr 12, 2014
c25bbe5
Create mesh in updateTexture(), when voxelSideTextureIDs is available
deathcap Apr 13, 2014
2f475fb
Working voxel-stitch with rect-tile-map
deathcap Apr 13, 2014
839d5ef
Fix high block test wool cloned texture, need to set after voxelSideT…
deathcap Apr 13, 2014
8624952
Update to voxel-stitch ^0.3.0, atlaspack + rect-tile-map > gl-tile-ma…
deathcap Apr 13, 2014
ae41edc
Lava is transparent, too
deathcap Apr 13, 2014
36bb64f
Set tileCount uniform for ao-shader
deathcap Apr 13, 2014
5bf0a60
Update to use voxel-shader, voxel-mesher > ao-shader, ao-mesher
deathcap Apr 13, 2014
92635fb
Update mesher, shader, stitch - 16-bit tex IDs + 2k atlas
deathcap Apr 13, 2014
106e5e5
Update mesher, shader, stitch - high-res/mixed texture support (>16x16)
deathcap Apr 14, 2014
00c33a9
Merge branch 'master' into ndarray
deathcap Apr 14, 2014
2e2ded6
Remove voxel-mesh
deathcap Apr 14, 2014
63526ff
Remove texture
deathcap Apr 14, 2014
bfb60b6
Expose camera as property on shell
deathcap Apr 14, 2014
41bc952
Remove voxel-view, throw error on accessing removed properties
deathcap Apr 14, 2014
0cc10d5
Remove WebGL capability checks; the shell should handle it
deathcap Apr 14, 2014
e612062
Remove controls
deathcap Apr 14, 2014
91dd6b8
Missed removing this detector require
deathcap Apr 14, 2014
90b5554
Stub appendTo and notCapable for compatibility
deathcap Apr 14, 2014
3c167d7
Revert "Remove WebGL capability checks"
deathcap Apr 14, 2014
78c86b1
Revert "Missed removing this detector require"
deathcap Apr 14, 2014
a8a9243
Fix spurious initializeRendering call
deathcap Apr 14, 2014
f822dca
Warn if voxel-stitch or voxel-registry plugins not found, instead of …
deathcap Apr 14, 2014
0ffc391
module.exports() returns shell instance
deathcap Apr 14, 2014
12ef940
Move createVoxelMesh to voxel-mesher
deathcap Apr 15, 2014
677c73d
Load materials before textures
deathcap Apr 15, 2014
7ee278a
Move wireframe into voxel-wireframe plugin. Closes GH-3
deathcap Apr 15, 2014
edb9903
Remove redundant bind, ref GH-3
deathcap Apr 15, 2014
2c0eee7
Add missing loadAfter voxel-registry in lib/blocks plugin
deathcap Apr 15, 2014
e698d2b
Change registry and stitch plugins to proper dependencies ('built-in'…
deathcap Apr 15, 2014
7b108d5
Add list of meshes
deathcap Apr 15, 2014
02bd1d8
Remove high block ID test
deathcap Apr 16, 2014
3798d44
Move shader setup to voxel-shader plugin
deathcap Apr 16, 2014
6479d8e
Remove now-unused gl-render
deathcap Apr 16, 2014
635b3a1
Fix not capable message for view removal
deathcap Apr 16, 2014
70f1350
Less friendly gl-error reporting; let voxel-engine handle compatible …
deathcap Apr 16, 2014
c6ee3a0
Refactor built-in plugin opts
deathcap Apr 16, 2014
7f48d01
Remove stitcher.stitch() call since voxel-stitch now calls it itself
deathcap Apr 16, 2014
2382a46
Move GL texture creation to voxel-shader; show voxels on 'updatedSide…
deathcap Apr 16, 2014
9fa48fc
Move blending settings to voxel-shader
deathcap Apr 16, 2014
ec17ebc
Move meshes to voxel-mesher, now loaded as plugin
deathcap Apr 16, 2014
d71ee23
Load terrain as a plugin; move blocks to built-in for now
deathcap Apr 16, 2014
56c3972
Fix indentation
deathcap Apr 17, 2014
357c97d
Move camera to new voxel-camera plugin
deathcap Apr 17, 2014
1f3419b
Update game-shell-fps-camera, now loaded as a plugin (≈ voxel-camera)
deathcap Apr 17, 2014
4e0d739
Minor cleanup
deathcap Apr 17, 2014
18a1112
Move lib/blocks, lib/terrain back to demo
deathcap Apr 17, 2014
474ad64
Merge branch 'game-shell-voxel' into ndarray
deathcap Apr 17, 2014
7b3ed0f
Merge game-shell-voxel main.js into index.js
deathcap Apr 17, 2014
2617554
Set game-shell clearColor from voxel-engine opts.skyColor
deathcap Apr 17, 2014
5d09d07
Start integrating showChunk() with voxel-mesher.. some voxels show up
deathcap Apr 18, 2014
edb9ddb
Accept ndarray to showChunk(), alternative to {voxels, dims, position}
deathcap Apr 18, 2014
d04e17a
Update game-shell-fps-camera - initial position/rotation options
deathcap Apr 18, 2014
e6c49c6
Disable asyncChunkGeneration for now, fixes refreshing chunks
deathcap Apr 19, 2014
ca23b48
Pass position to mesher for chunking
deathcap Apr 19, 2014
6ad3527
Move mesh storage to voxels.meshes, keyed by chunk index
deathcap Apr 19, 2014
ba20125
Update for non-pluginized voxel-mesh (createVoxelMesh)
deathcap Apr 19, 2014
c318ba2
Remove unused (now integrated) game-shell-voxel require()
deathcap Apr 19, 2014
43581b5
Use sphere world generator in voxel module by default instead of incl…
deathcap Apr 19, 2014
d38f303
Accept a string value for opts.generate, indexed to voxel.generator
deathcap Apr 19, 2014
7b8db72
Remove mesh debug log
deathcap Apr 19, 2014
245ac6c
Update voxel, voxel-mesher - chunking fixes
deathcap Apr 19, 2014
ade3d5e
Remove demo - moved to voexl-example
deathcap Apr 19, 2014
409ec9d
Remove three.js dependency
deathcap Apr 19, 2014
fc0d682
Update voxel-shader - meshes from game.voxels.meshes instead of option
deathcap Apr 19, 2014
961e2f2
Add missing .git extension to voxel dependency
deathcap Apr 19, 2014
2646934
Back to loading voxel-mesher as a plugin
deathcap Apr 24, 2014
46dcbbc
Update voxel-mesher, voxel-shader, voxel-stitch - wireframe and cube …
deathcap Apr 24, 2014
8c303d2
Update cameraPosition, cameraVector to use game-shell-fps-camera
deathcap Apr 25, 2014
68eb219
playerPosition() returns cameraPosition(), for now
deathcap Apr 25, 2014
281e9ba
Re-enable async chunk gen, start unpaused, and generate chunks even w…
deathcap Apr 25, 2014
c2e4ab5
Log voxel types for debugging generation (chunkDensity)
deathcap Apr 27, 2014
cbaee6d
Negate cameraPosition to fix +Y/-Y mismatch; new chunks now generate
deathcap Apr 27, 2014
9f2b57b
Move cameraPosition negation to game-shell-fps-camera getPosition()
deathcap Apr 27, 2014
5746b25
Update dependencies - voxel-mesher/shader ^0.9.0
deathcap Apr 27, 2014
5efc028
Update to g-s-fps-camera ^0.3.1, with position fix. Chunks now load c…
deathcap Apr 27, 2014
854e502
Update removeFarChunks to dispose of gl-vao meshes, fixes far chunk u…
deathcap Apr 30, 2014
ac277b2
Remove chunk logging
deathcap Apr 30, 2014
fd6ef6b
Update voxel - fixes setBlock() with ndarray chunks
deathcap Apr 30, 2014
2ab6150
Re-add hookupControls()
deathcap May 2, 2014
471230e
Fix pluginOpts defaulting
deathcap May 4, 2014
d1470e5
Check if no camera plugin loaded in cameraVector(), cameraPosition()
deathcap May 4, 2014
1091cdd
Replace hardcoded mesh disposal with vertexArrayObjects iteration
deathcap May 4, 2014
6fdd704
Proxy game-shell wasDown() to game.buttons properties for compatibility
deathcap May 5, 2014
4f581ce
Support keybindings option, passes each to game-shell bind(); re-add …
deathcap May 6, 2014
10a4709
Remove angle brackets for game-shell virtual key name compatibility
deathcap May 6, 2014
a06350f
Fix mouse keys, fire - add filtered_vkey matching game-shell (spaces …
deathcap May 6, 2014
902f20e
Simulate three.js player object
deathcap May 6, 2014
4648457
Update g-s-fps-camera, now using matching keybinding names
deathcap May 6, 2014
ef8c0ee
Negate and flip camera vector - partially fixes raycasting, https://g…
deathcap May 6, 2014
25096cf
Load plugins after setting up controls
deathcap May 8, 2014
e3b65d4
Update to voxel-stitch ^0.7.0, texture array improvements
deathcap May 9, 2014
b256664
Remove lib/blocks.js, lib/terrain.js - moved to voxel-example
deathcap May 9, 2014
dfc16f1
Set _parent node_ of canvas zIndex to -1, fixes unclickable datgui pl…
deathcap May 10, 2014
8d5355e
Support voxel-engine 'plugin' for top-level options
deathcap May 8, 2014
104ef59
Update to voxel-stitch ^0.7.1, fixes item textures with voxel-registry
deathcap May 10, 2014
348bdaf
Update to voxel-shader ^0.11.0, includes camera options
deathcap May 11, 2014
216be65
Add chunkPad option, update to voxel-mesher ^0.11.0
deathcap May 26, 2014
b1c019f
Fix camera vector reflection, corrects voxel raycasting
deathcap May 29, 2014
d683c9b
Remove this.control(player) and fake player in hookupControls
deathcap May 31, 2014
37282de
Fix collideVoxels vector i_end NaN infinite loop, vector object/array…
deathcap Jun 1, 2014
2b4054b
Re-enable setting resting variable in terrain collision
deathcap Jun 2, 2014
b82feb2
Simplify resting property setting
deathcap Jun 6, 2014
44f711d
playerPosition() now returns avatar position, if player under control
deathcap Jun 6, 2014
aca9bc9
Update voxel, voxel-control, voxel-physical - fix collision oscillation
deathcap Jun 6, 2014
ff3d460
Update to gs-fps-camera ^0.5.0, adds voxel-control/physics integration
deathcap Jun 7, 2014
c3aa0e7
Remove obsolete comment in showChunk, solid chunks generate a mesh no…
deathcap Jun 7, 2014
1d6a587
Update dependencies
deathcap Jun 10, 2014
26f5099
Add missing alpha channel to skyColor -> clearColor
deathcap Jun 10, 2014
f9f5f2c
Update to voxel-mesher/shader 0.13.0 - model rendering enhancements
deathcap Jun 14, 2014
6a81ddf
Update to use camera getVector(), fixes XYZ coordinate reversal
deathcap Jun 14, 2014
ed04bf4
Only report game.buttons down if pointerLock acquired
deathcap Jun 15, 2014
9385712
Create container for game-shell, remove canvas z-index hack
deathcap Jun 16, 2014
8aaf8b6
Update to use voxel-controls/physicals forks for ndarray compatibility
deathcap Jun 27, 2014
83565b0
Minor stylistic cleanup (semicolons)
deathcap Jul 4, 2014
9998d9e
Update to voxel-registry ^0.8.1
deathcap Jul 8, 2014
8202310
Update dependencies
deathcap Jul 14, 2014
6595775
game-shell should not load on the server
georgzoeller Jan 15, 2015
a041f93
fix gl-now crash on require on headless server
georgzoeller Jan 15, 2015
2ab1c09
fixed safety check on valid in .playerPosition()
georgzoeller Jan 15, 2015
2ca5c47
Merge pull request #2 from georgzoeller/ndarray
deathcap Feb 5, 2015
eb914d6
Update readme for voxel-example, ndarray-based analogue to voxel-hell…
deathcap Feb 6, 2015
396146c
Throw error on using unsupported 'materials' option
deathcap Feb 6, 2015
d88bff9
Update to voxel-stitch ^0.10.0; major performance fix
deathcap Feb 6, 2015
641158b
Update to game-shell-fps-camera ^0.7.0
deathcap Feb 7, 2015
e98df98
Update to voxel-shader ^0.14.0
deathcap Feb 7, 2015
df9afb3
Remove unused pin-it module
deathcap Feb 12, 2015
0296e52
Replace gl-matrix/vec3 with gl-vec3
deathcap Feb 12, 2015
60de3a9
Mark removed properties with obsolete()
deathcap Feb 12, 2015
402d3d0
Update to voxel ^0.5.0 ndarray release
deathcap Feb 13, 2015
7db79ad
Remove unused ndarray-fill dependency
deathcap Feb 17, 2015
e9b8f6b
Remove stats FPS counter - use browser built-in FPS meter instead
deathcap Mar 25, 2015
6b5c953
Emit engine-init event at the very end of the constructor
deathcap Mar 28, 2015
3273959
raycastVoxels() default normal to top face if hits inside voxel
deathcap Mar 29, 2015
038c12f
'renderChunk' typo - missing quote
Mar 17, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
node_modules
dist
dist
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz

pids
logs
results

npm-debug.log
node_modules/*
25 changes: 25 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
Copyright (c) 2013, Max Ogden
All rights reserved.

Expand All @@ -7,3 +8,27 @@ Redistributions of source code must retain the above copyright notice, this list
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the <ORGANIZATION> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=======

The MIT License (MIT)

Copyright (c) 2013 Mikola Lysenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
>>>>>>> game-shell-voxel
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ Learn more at http://voxeljs.com

Write a voxel.js game in browser: http://voxel-creator.jit.su

hello world template repo: http://github.com/maxogden/voxel-hello-world
hello world template repo: http://github.com/deathcap/voxel-example

# example

``` js
var createGame = require('voxel-engine')
var createGame = require('voxel-example')
var game = createGame()
game.appendTo(document.body)
```

### contributing
Expand Down Expand Up @@ -214,7 +213,7 @@ emits when you move between voxels. pos has x, y, and z voxel coordinates of the

emits when you move between chunks. pos has x, y, and z chunk coordinates of the chunk you just entered

### `game.on('renderChunk, function(chunk) {})`
### `game.on('renderChunk', function(chunk) {})`

emits when a chunk is drawn (using the `showChunk` method). `chunk` is the full chunk object, which has the voxel data and a `.position` and `.dims`

Expand Down
Loading