PageRenderTime 11ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/js/BubbleDots/BubbleDotsConstants.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 38 lines | 20 code | 2 blank | 16 comment | 0 complexity | bae670c8a102e670de9cdad2f855f926 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. 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. Version:
  14. 1.0
  15. */
  16. (function () {
  17. BubbleDots.Constants = {
  18. ENTITY_DEFAULT_RADIUS: 17,
  19. GAME_WIDTH: 700,
  20. GAME_HEIGHT: 450,
  21. MAX_CIRCLES: 200,
  22. GAME_DURATION: 1000 * 300,
  23. ENTITY_TYPES: {
  24. CANDY_ENTITY: 1 << 0,
  25. PLAYER_ENTITY: 1 << 1
  26. },
  27. IMAGE_ASSETS: [
  28. {id: "particle" + 1, url: "assets/bubbledots/blueParticle.png"},
  29. {id: "particle" + 2, url: "assets/bubbledots/redParticle.png"},
  30. {id: "particle" + 3, url: "assets/bubbledots/greenParticle.png"},
  31. {id: "particle" + 4, url: "assets/bubbledots/yellowParticle.png"},
  32. {id: "ground", url: "assets/bubbledots/ground.png"}
  33. ]
  34. }
  35. })();