/js/DemoCircles/DemoAppConstants.js
JavaScript | 31 lines | 14 code | 1 blank | 16 comment | 0 complexity | 2ab42fc8b9a48513680858b0d592fe92 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
- /**
- File:
- DemoAppConstants.js
- Created By:
- Mario Gonzalez
- Project:
- RealtimeMultiplayerNodeJS - Demo
- Abstract:
- This class contains Constants used by the DemoApp in RealtimeMultiplayerGame
- Basic Usage:
- [This class is not instantiated! - below is an example of using this class by extending it]
- var clientDropWait = RealtimeMultiplayerGame.Constants.CL_DEFAULT_MAXRATE
- Version:
- 1.0
- */
- (function () {
- DemoApp.Constants = {
- ENTITY_DEFAULT_RADIUS: 8,
- GAME_WIDTH: 700,
- GAME_HEIGHT: 450,
- MAX_CIRCLES: 100,
- GAME_DURATION: 1000 * 300,
- ENTITY_TYPES: {
- UNKNOWN: 1 << 0,
- GENERIC_CIRCLE: 1 << 1,
- PLAYER_ENTITY: 1 << 2
- }
- }
- })();