not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
883 B

  1. // Constants
  2. var constant = {};
  3. // Board size
  4. constant.boardWidth = 15;
  5. constant.boardHeight = 9;
  6. constant.tileSize = 64;
  7. constant.areaWidth = constant.boardWidth*constant.tileSize;
  8. constant.areaHeight = constant.boardHeight*constant.tileSize;
  9. constant.pubHeight = 100;
  10. constant.fireZoneWidth = 100;
  11. constant.fireZoneHeight = 100;
  12. // Tile type
  13. constant.tileEmpty = 0;
  14. constant.tileTrees = 1;
  15. constant.tileMountain = 2;
  16. constant.tileWater = 3;
  17. // Unit power - number of step before dead
  18. constant.powerHq = 2;
  19. constant.powerSoldier = 1;
  20. constant.powerTank = 2;
  21. constant.powerCanon = 3;
  22. constant.powerHelo = 2;
  23. // User power
  24. constant.userPower = 10;
  25. // Timer count
  26. constant.loopInterval = 500;
  27. constant.explosionInterval = 50;
  28. // End size image
  29. constant.endGameWidth = 480;
  30. constant.endGameHeight = 320;
  31. // Units arrival
  32. constant.startArrival = 5;
  33. constant.waveInitSize = 2;