max-mapper / voxel-engine

3D HTML5 voxel game engine
http://maxogden.github.com/voxel-engine
BSD 3-Clause "New" or "Revised" License
1.29k stars 220 forks source link

Timers #46

Closed chrisdickinson closed 11 years ago

chrisdickinson commented 11 years ago

This separates the physics timer from the request animation frame timer per @mikolalysenko's advice.

It adds game.pin(target[, updateEvery][, objectTarget][, "optionalName"]) for easier debugging.

It fixes the issue with infinite chunk loading by reinstating the position event (this time, for whatever avatar the controls are pointing at).

It adds game.paused, which keeps the game from firing physics ticks until it's true.