Added my awesomeness to the settings.

This commit is contained in:
Tobias Tom 2012-07-19 12:10:45 +03:00
parent ceafcc628c
commit 19287ebb5d

View file

@ -1,6 +1,4 @@
define(function() {
var Settings = {
define({
STAGE_WIDTH: 600,
STAGE_HEIGHT: 400,
@ -37,23 +35,17 @@ define(function() {
PLAYER_RESTITUTION: 0.0,
PLAYER_LINEAR_DAMPING: .5,
ITEM_DENSITY: 0.9,
ITEM_FRICTION: 0.99,
ITEM_RESTITUTION: 0.02,
// BROWSER
CANVAS_DOM_ID: 'canvasContainer',
IS_BROWSER_ENVIRONMENT: isBrowserEnvironment(),
IS_BROWSER_ENVIRONMENT: isBrowserEnvironment(){
return typeof window !== 'undefined';
},
DEBUG_MODE: true,
// NETWORKING
WORLD_UPDATE_BROADCAST_INTERVAL: 15
};
function isBrowserEnvironment(){
return typeof window !== 'undefined';
}
return Settings;
})