Constants.js 707 B

12345678910111213141516171819202122232425262728293031323334
  1. //Constants用来存储游戏常量
  2. //Canvas.x = 360 Map.x =-1500
  3. //转换坐标都EditorUI的大概偏移量
  4. const EditorOffset = 1100;
  5. //map的偏移坐标
  6. const MapNodeX = 4140;
  7. const MapNodeY = 5000;
  8. const MoveX = 1800//1500;//2700;
  9. const MoveY = 0//-600;//250;
  10. const MoveLeftX = 2600;
  11. const MoveRightX = 1950;
  12. const MoveUpY = 740;
  13. const MoveDownY = 340;
  14. //TileMap的长和宽是 32 ,Astar
  15. const TileMapWith = 32;
  16. module.exports = {
  17. EditorOffset: EditorOffset,
  18. MoveY: MoveY,//移动边界设置
  19. MoveX: MoveX,
  20. MoveLeftX: MoveLeftX,//移动边界设置
  21. MoveRightX: MoveRightX,
  22. MoveUpY: MoveUpY,//移动边界设置
  23. MoveDownY: MoveDownY,
  24. TileMapWith: TileMapWith,
  25. }