PageRenderTime 19ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/js/DemoHelloWorld/DemoHelloWorldConstants.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 29 lines | 12 code | 1 blank | 16 comment | 0 complexity | 308efff6fa33c8435b91a5715c24ddb6 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. /**
  2. File:
  3. DemoHelloWorldConstants.js
  4. Created By:
  5. Mario Gonzalez
  6. Project:
  7. RealtimeMultiplayerNodeJS - Demo
  8. Abstract:
  9. This class contains Constants used by the DemoHelloWorld 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. Version:
  14. 1.0
  15. */
  16. (function () {
  17. DemoHelloWorld.Constants = {
  18. ENTITY_DEFAULT_RADIUS: 8,
  19. GAME_WIDTH: 700,
  20. GAME_HEIGHT: 450,
  21. MAX_CIRCLES: 300,
  22. GAME_DURATION: 1000 * 300,
  23. ENTITY_TYPES: {
  24. CIRCLE: 1 << 1
  25. }
  26. }
  27. })();