/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. Version:
  14. 1.0
  15. */
  16. (function () {
  17. DemoApp.Constants = {
  18. ENTITY_DEFAULT_RADIUS: 8,
  19. GAME_WIDTH: 700,
  20. GAME_HEIGHT: 450,
  21. MAX_CIRCLES: 100,
  22. GAME_DURATION: 1000 * 300,
  23. ENTITY_TYPES: {
  24. UNKNOWN: 1 << 0,
  25. GENERIC_CIRCLE: 1 << 1,
  26. PLAYER_ENTITY: 1 << 2
  27. }
  28. }
  29. })();