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

/js/DemoBox2D/DemoBox2DConstants.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 32 lines | 15 code | 1 blank | 16 comment | 0 complexity | c9402f07f9f130635cec1c1726b0f5b8 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. DemoBox2DConstants.js
  4. Created By:
  5. Mario Gonzalez
  6. Project:
  7. RealtimeMultiplayerNodeJS - Demo
  8. Abstract:
  9. This class contains Constants used by the DemoBox2D 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. DemoBox2D.Constants = {
  18. ENTITY_DEFAULT_RADIUS: 8,
  19. ENTITY_BOX_SIZE: 16,
  20. PHYSICS_SCALE: 32,
  21. GAME_WIDTH: 700,
  22. GAME_HEIGHT: 450,
  23. MAX_OBJECTS: 100,
  24. GAME_DURATION: 1000 * 300,
  25. ENTITY_TYPES: {
  26. CIRCLE: 1 << 1,
  27. BOX: 1 << 2
  28. }
  29. }
  30. })();