PageRenderTime 206ms CodeModel.GetById 80ms app.highlight 9ms RepoModel.GetById 112ms app.codeStats 1ms

/js/BubbleDots/BubbleDotsConstants.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 38 lines | 20 code | 2 blank | 16 comment | 0 complexity | bae670c8a102e670de9cdad2f855f926 MD5 | raw file
 1/**
 2 File:
 3 BubbleDotsConstants.js
 4 Created By:
 5 Mario Gonzalez
 6 Project:
 7 RealtimeMultiplayerNodeJS - Demo
 8 Abstract:
 9 This class contains Constants used by the BubbleDots 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    BubbleDots.Constants = {
19        ENTITY_DEFAULT_RADIUS: 17,
20        GAME_WIDTH: 700,
21        GAME_HEIGHT: 450,
22        MAX_CIRCLES: 200,
23        GAME_DURATION: 1000 * 300,
24
25        ENTITY_TYPES: {
26            CANDY_ENTITY: 1 << 0,
27            PLAYER_ENTITY: 1 << 1
28        },
29
30        IMAGE_ASSETS: [
31            {id: "particle" + 1, url: "assets/bubbledots/blueParticle.png"},
32            {id: "particle" + 2, url: "assets/bubbledots/redParticle.png"},
33            {id: "particle" + 3, url: "assets/bubbledots/greenParticle.png"},
34            {id: "particle" + 4, url: "assets/bubbledots/yellowParticle.png"},
35            {id: "ground", url: "assets/bubbledots/ground.png"}
36        ]
37    }
38})();