map.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. return {
  2. version = "1.1",
  3. luaversion = "5.1",
  4. tiledversion = "1.1.5",
  5. orientation = "orthogonal",
  6. renderorder = "right-down",
  7. width = 10,
  8. height = 10,
  9. tilewidth = 16,
  10. tileheight = 16,
  11. nextobjectid = 9,
  12. properties = {},
  13. tilesets = {
  14. {
  15. name = "greysq",
  16. firstgid = 1,
  17. filename = "greysq.tsx",
  18. tilewidth = 16,
  19. tileheight = 16,
  20. spacing = 0,
  21. margin = 0,
  22. image = "../img/greysq.png",
  23. imagewidth = 64,
  24. imageheight = 16,
  25. tileoffset = {
  26. x = 0,
  27. y = 0
  28. },
  29. grid = {
  30. orientation = "orthogonal",
  31. width = 16,
  32. height = 16
  33. },
  34. properties = {},
  35. terrains = {},
  36. tilecount = 4,
  37. tiles = {}
  38. }
  39. },
  40. layers = {
  41. {
  42. type = "tilelayer",
  43. name = "Tile Layer 1",
  44. x = 0,
  45. y = 0,
  46. width = 10,
  47. height = 10,
  48. visible = true,
  49. opacity = 1,
  50. offsetx = 0,
  51. offsety = 0,
  52. properties = {},
  53. encoding = "lua",
  54. data = {
  55. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  56. 4, 1, 1, 1, 1, 1, 1, 1, 1, 4,
  57. 4, 1, 3, 3, 3, 3, 3, 3, 1, 4,
  58. 4, 1, 3, 3, 1, 1, 3, 3, 1, 4,
  59. 4, 1, 2, 1, 1, 1, 1, 2, 1, 4,
  60. 4, 1, 2, 1, 1, 1, 1, 2, 1, 4,
  61. 4, 1, 3, 3, 1, 1, 3, 3, 1, 4,
  62. 4, 1, 3, 3, 3, 3, 3, 3, 1, 4,
  63. 4, 1, 1, 1, 1, 1, 1, 1, 1, 4,
  64. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
  65. }
  66. },
  67. {
  68. type = "objectgroup",
  69. name = "spawn point",
  70. visible = true,
  71. opacity = 1,
  72. offsetx = 0,
  73. offsety = 0,
  74. draworder = "topdown",
  75. properties = {},
  76. objects = {
  77. {
  78. id = 8,
  79. name = "player",
  80. type = "",
  81. shape = "rectangle",
  82. x = 32,
  83. y = 32 ,
  84. width = 16,
  85. height = 16,
  86. rotation = 0,
  87. visible = true,
  88. properties = {}
  89. }
  90. }
  91. }
  92. }
  93. }