hex.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. return {
  2. version = "1.1",
  3. luaversion = "5.1",
  4. tiledversion = "0.17.2",
  5. orientation = "hexagonal",
  6. renderorder = "right-down",
  7. width = 32,
  8. height = 20,
  9. tilewidth = 32,
  10. tileheight = 32,
  11. nextobjectid = 3,
  12. hexsidelength = 18,
  13. staggeraxis = "x",
  14. staggerindex = "odd",
  15. properties = {},
  16. tilesets = {
  17. {
  18. name = "hex1",
  19. firstgid = 1,
  20. tilewidth = 32,
  21. tileheight = 32,
  22. spacing = 0,
  23. margin = 0,
  24. image = "hex1.png",
  25. imagewidth = 96,
  26. imageheight = 32,
  27. tileoffset = {
  28. x = 0,
  29. y = 0
  30. },
  31. properties = {},
  32. terrains = {},
  33. tilecount = 3,
  34. tiles = {}
  35. }
  36. },
  37. layers = {
  38. {
  39. type = "tilelayer",
  40. name = "Grid",
  41. x = 0,
  42. y = 0,
  43. width = 32,
  44. height = 20,
  45. visible = true,
  46. opacity = 1,
  47. offsetx = 0,
  48. offsety = 0,
  49. properties = {},
  50. encoding = "lua",
  51. data = {
  52. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  53. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  54. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  55. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1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3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  67. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  68. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  69. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  70. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2,
  71. 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2
  72. }
  73. },
  74. {
  75. type = "objectgroup",
  76. name = "Objects",
  77. visible = true,
  78. opacity = 1,
  79. offsetx = 0,
  80. offsety = 0,
  81. draworder = "topdown",
  82. properties = {
  83. ["collidable"] = true
  84. },
  85. objects = {
  86. {
  87. id = 1,
  88. name = "",
  89. type = "",
  90. shape = "rectangle",
  91. x = 57,
  92. y = 32,
  93. width = 75,
  94. height = 96,
  95. rotation = 0,
  96. visible = true,
  97. properties = {}
  98. },
  99. {
  100. id = 2,
  101. name = "",
  102. type = "",
  103. shape = "rectangle",
  104. x = 250,
  105. y = 48,
  106. width = 71.5,
  107. height = 76,
  108. rotation = 63.5,
  109. visible = true,
  110. properties = {}
  111. }
  112. }
  113. }
  114. }
  115. }