PageRenderTime 142ms CodeModel.GetById 80ms app.highlight 2ms RepoModel.GetById 59ms app.codeStats 0ms

/js/DemoBox2D/DemoBox2DConstants.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 32 lines | 15 code | 1 blank | 16 comment | 0 complexity | c9402f07f9f130635cec1c1726b0f5b8 MD5 | raw file
 1/**
 2 File:
 3 DemoBox2DConstants.js
 4 Created By:
 5 Mario Gonzalez
 6 Project:
 7 RealtimeMultiplayerNodeJS - Demo
 8 Abstract:
 9 This class contains Constants used by the DemoBox2D in RealtimeMultiplayerGame
10 Basic Usage:
11 [This class is not instantiated! - below is an example of using this class by extending it]
12 var clientDropWait = RealtimeMultiplayerGame.Constants.CL_DEFAULT_MAXRATE
13
14 Version:
15 1.0
16 */
17(function () {
18    DemoBox2D.Constants = {
19        ENTITY_DEFAULT_RADIUS: 8,
20        ENTITY_BOX_SIZE: 16,
21        PHYSICS_SCALE: 32,
22        GAME_WIDTH: 700,
23        GAME_HEIGHT: 450,
24        MAX_OBJECTS: 100,
25        GAME_DURATION: 1000 * 300,
26
27        ENTITY_TYPES: {
28            CIRCLE: 1 << 1,
29            BOX: 1 << 2
30        }
31    }
32})();