PageRenderTime 122ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 79ms app.codeStats 0ms

/js/DemoCircles/DemoAppConstants.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 31 lines | 14 code | 1 blank | 16 comment | 0 complexity | 2ab42fc8b9a48513680858b0d592fe92 MD5 | raw file
 1/**
 2 File:
 3 DemoAppConstants.js
 4 Created By:
 5 Mario Gonzalez
 6 Project:
 7 RealtimeMultiplayerNodeJS - Demo
 8 Abstract:
 9 This class contains Constants used by the DemoApp 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    DemoApp.Constants = {
19        ENTITY_DEFAULT_RADIUS: 8,
20        GAME_WIDTH: 700,
21        GAME_HEIGHT: 450,
22        MAX_CIRCLES: 100,
23        GAME_DURATION: 1000 * 300,
24
25        ENTITY_TYPES: {
26            UNKNOWN: 1 << 0,
27            GENERIC_CIRCLE: 1 << 1,
28            PLAYER_ENTITY: 1 << 2
29        }
30    }
31})();