mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Added debug canvas and webgl render canvas, added viewcontroller
This commit is contained in:
parent
486cb4f312
commit
dd71bf79a9
9 changed files with 224 additions and 109 deletions
|
|
@ -42,9 +42,10 @@ define(function() {
|
|||
ITEM_FRICTION: 0.99,
|
||||
ITEM_RESTITUTION: 0.02,
|
||||
|
||||
// debug draw
|
||||
DEBUG_DRAW_CANVAS_SPRITE: null,//isBrowserEnvironment() ? document.getElementById("canvas").getContext("2d") : undefined,
|
||||
IS_BROWSER_ENVIRONMENT: isBrowserEnvironment()
|
||||
CANVAS_DOM_ID: 'canvasContainer',
|
||||
IS_BROWSER_ENVIRONMENT: isBrowserEnvironment(),
|
||||
|
||||
DEBUG_MODE: true
|
||||
};
|
||||
|
||||
function isBrowserEnvironment(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue