Tileset.tres 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. [gd_resource type="TileSet" load_steps=14 format=2]
  2. [ext_resource path="res://tiles_demo.png" type="Texture" id=1]
  3. [sub_resource type="ConvexPolygonShape2D" id=1]
  4. points = PoolVector2Array( -16, -12, 16, -12, 16, 16, -16, 16 )
  5. [sub_resource type="ConvexPolygonShape2D" id=2]
  6. points = PoolVector2Array( -16, 16, -16, -12, 12, -12, 12, 16 )
  7. [sub_resource type="ConvexPolygonShape2D" id=3]
  8. points = PoolVector2Array( -16, -16, 16, -16, 16, 16, -16, 16 )
  9. [sub_resource type="ConvexPolygonShape2D" id=4]
  10. points = PoolVector2Array( -16, -28, 16, 4, 16, 32, -16, 32 )
  11. [sub_resource type="ConvexPolygonShape2D" id=5]
  12. points = PoolVector2Array( -16, 16, -16, -16, 12, -16, 12, 16 )
  13. [sub_resource type="ConvexPolygonShape2D" id=6]
  14. points = PoolVector2Array( -16, -12, 16, -12, 16, 12, -16, 12 )
  15. [sub_resource type="ConvexPolygonShape2D" id=7]
  16. points = PoolVector2Array( -16, -12, 12, -12, 12, 12, -16, 12 )
  17. [sub_resource type="ConvexPolygonShape2D" id=8]
  18. points = PoolVector2Array( -16, 16, -16, -16, 12, -16, 12, 16 )
  19. [sub_resource type="ConvexPolygonShape2D" id=9]
  20. points = PoolVector2Array( -32, 16, -32, -16, -4, -16, -4, 16 )
  21. [sub_resource type="ConvexPolygonShape2D" id=10]
  22. points = PoolVector2Array( -16, 16, -16, -16, 12, -16, 16, -12, 16, 16 )
  23. [sub_resource type="ConvexPolygonShape2D" id=11]
  24. points = PoolVector2Array( -16, 16, -16, -12, 16, -12, 16, 16 )
  25. [sub_resource type="ConvexPolygonShape2D" id=12]
  26. points = PoolVector2Array( -16, 16, -16, -12, 16, -12, 16, 16 )
  27. [resource]
  28. 0/name = "floor"
  29. 0/texture = ExtResource( 1 )
  30. 0/tex_offset = Vector2( 0, 0 )
  31. 0/modulate = Color( 1, 1, 1, 1 )
  32. 0/region = Rect2( 0, 0, 32, 32 )
  33. 0/tile_mode = 0
  34. 0/occluder_offset = Vector2( 16, 16 )
  35. 0/navigation_offset = Vector2( 16, 16 )
  36. 0/shape_offset = Vector2( 16, 16 )
  37. 0/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  38. 0/shape = SubResource( 1 )
  39. 0/shape_one_way = false
  40. 0/shape_one_way_margin = 1.0
  41. 0/shapes = [ {
  42. "autotile_coord": Vector2( 0, 0 ),
  43. "one_way": false,
  44. "one_way_margin": 1.0,
  45. "shape": SubResource( 1 ),
  46. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  47. } ]
  48. 0/z_index = 0
  49. 1/name = "edge"
  50. 1/texture = ExtResource( 1 )
  51. 1/tex_offset = Vector2( 0, 0 )
  52. 1/modulate = Color( 1, 1, 1, 1 )
  53. 1/region = Rect2( 32, 0, 32, 32 )
  54. 1/tile_mode = 0
  55. 1/occluder_offset = Vector2( 16, 16 )
  56. 1/navigation_offset = Vector2( 16, 16 )
  57. 1/shape_offset = Vector2( 16, 16 )
  58. 1/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  59. 1/shape = SubResource( 2 )
  60. 1/shape_one_way = false
  61. 1/shape_one_way_margin = 1.0
  62. 1/shapes = [ {
  63. "autotile_coord": Vector2( 0, 0 ),
  64. "one_way": false,
  65. "one_way_margin": 1.0,
  66. "shape": SubResource( 2 ),
  67. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  68. } ]
  69. 1/z_index = 0
  70. 2/name = "wall"
  71. 2/texture = ExtResource( 1 )
  72. 2/tex_offset = Vector2( 0, 0 )
  73. 2/modulate = Color( 1, 1, 1, 1 )
  74. 2/region = Rect2( 32, 32, 32, 32 )
  75. 2/tile_mode = 0
  76. 2/occluder_offset = Vector2( 16, 16 )
  77. 2/navigation_offset = Vector2( 16, 16 )
  78. 2/shape_offset = Vector2( 16, 16 )
  79. 2/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  80. 2/shape = SubResource( 8 )
  81. 2/shape_one_way = false
  82. 2/shape_one_way_margin = 1.0
  83. 2/shapes = [ {
  84. "autotile_coord": Vector2( 0, 0 ),
  85. "one_way": false,
  86. "one_way_margin": 1.0,
  87. "shape": SubResource( 8 ),
  88. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  89. } ]
  90. 2/z_index = 0
  91. 3/name = "wall_deco"
  92. 3/texture = ExtResource( 1 )
  93. 3/tex_offset = Vector2( 0, 0 )
  94. 3/modulate = Color( 1, 1, 1, 1 )
  95. 3/region = Rect2( 160, 64, 64, 32 )
  96. 3/tile_mode = 0
  97. 3/occluder_offset = Vector2( 32, 16 )
  98. 3/navigation_offset = Vector2( 32, 16 )
  99. 3/shape_offset = Vector2( 32, 16 )
  100. 3/shape_transform = Transform2D( 1, 0, 0, 1, 32, 16 )
  101. 3/shape = SubResource( 9 )
  102. 3/shape_one_way = false
  103. 3/shape_one_way_margin = 1.0
  104. 3/shapes = [ {
  105. "autotile_coord": Vector2( 0, 0 ),
  106. "one_way": false,
  107. "one_way_margin": 1.0,
  108. "shape": SubResource( 9 ),
  109. "shape_transform": Transform2D( 1, 0, 0, 1, 32, 16 )
  110. } ]
  111. 3/z_index = 0
  112. 4/name = "corner"
  113. 4/texture = ExtResource( 1 )
  114. 4/tex_offset = Vector2( 0, 0 )
  115. 4/modulate = Color( 1, 1, 1, 1 )
  116. 4/region = Rect2( 32, 64, 32, 32 )
  117. 4/tile_mode = 0
  118. 4/occluder_offset = Vector2( 16, 16 )
  119. 4/navigation_offset = Vector2( 16, 16 )
  120. 4/shape_offset = Vector2( 16, 16 )
  121. 4/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  122. 4/shape = SubResource( 10 )
  123. 4/shape_one_way = false
  124. 4/shape_one_way_margin = 1.0
  125. 4/shapes = [ {
  126. "autotile_coord": Vector2( 0, 0 ),
  127. "one_way": false,
  128. "one_way_margin": 1.0,
  129. "shape": SubResource( 10 ),
  130. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  131. } ]
  132. 4/z_index = 0
  133. 5/name = "flowers"
  134. 5/texture = ExtResource( 1 )
  135. 5/tex_offset = Vector2( 0, 0 )
  136. 5/modulate = Color( 1, 1, 1, 1 )
  137. 5/region = Rect2( 96, 96, 32, 32 )
  138. 5/tile_mode = 0
  139. 5/occluder_offset = Vector2( 16, 16 )
  140. 5/navigation_offset = Vector2( 16, 16 )
  141. 5/shape_offset = Vector2( 16, 16 )
  142. 5/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  143. 5/shape = SubResource( 11 )
  144. 5/shape_one_way = false
  145. 5/shape_one_way_margin = 1.0
  146. 5/shapes = [ {
  147. "autotile_coord": Vector2( 0, 0 ),
  148. "one_way": false,
  149. "one_way_margin": 1.0,
  150. "shape": SubResource( 11 ),
  151. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  152. } ]
  153. 5/z_index = 0
  154. 6/name = "tree_base"
  155. 6/texture = ExtResource( 1 )
  156. 6/tex_offset = Vector2( 0, 0 )
  157. 6/modulate = Color( 1, 1, 1, 1 )
  158. 6/region = Rect2( 128, 96, 32, 32 )
  159. 6/tile_mode = 0
  160. 6/occluder_offset = Vector2( 16, 16 )
  161. 6/navigation_offset = Vector2( 16, 16 )
  162. 6/shape_offset = Vector2( 16, 16 )
  163. 6/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  164. 6/shape = SubResource( 12 )
  165. 6/shape_one_way = false
  166. 6/shape_one_way_margin = 1.0
  167. 6/shapes = [ {
  168. "autotile_coord": Vector2( 0, 0 ),
  169. "one_way": false,
  170. "one_way_margin": 1.0,
  171. "shape": SubResource( 12 ),
  172. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  173. } ]
  174. 6/z_index = 0
  175. 7/name = "tree_mid"
  176. 7/texture = ExtResource( 1 )
  177. 7/tex_offset = Vector2( 0, 0 )
  178. 7/modulate = Color( 1, 1, 1, 1 )
  179. 7/region = Rect2( 128, 64, 32, 32 )
  180. 7/tile_mode = 0
  181. 7/occluder_offset = Vector2( 16, 16 )
  182. 7/navigation_offset = Vector2( 16, 16 )
  183. 7/shape_offset = Vector2( 0, 0 )
  184. 7/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
  185. 7/shape_one_way = false
  186. 7/shape_one_way_margin = 0.0
  187. 7/shapes = [ ]
  188. 7/z_index = 0
  189. 8/name = "tree_mid 2"
  190. 8/texture = ExtResource( 1 )
  191. 8/tex_offset = Vector2( 0, 0 )
  192. 8/modulate = Color( 1, 1, 1, 1 )
  193. 8/region = Rect2( 128, 32, 32, 32 )
  194. 8/tile_mode = 0
  195. 8/occluder_offset = Vector2( 16, 16 )
  196. 8/navigation_offset = Vector2( 16, 16 )
  197. 8/shape_offset = Vector2( 0, 0 )
  198. 8/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
  199. 8/shape_one_way = false
  200. 8/shape_one_way_margin = 0.0
  201. 8/shapes = [ ]
  202. 8/z_index = 0
  203. 9/name = "tree_top"
  204. 9/texture = ExtResource( 1 )
  205. 9/tex_offset = Vector2( 0, 0 )
  206. 9/modulate = Color( 1, 1, 1, 1 )
  207. 9/region = Rect2( 128, 0, 32, 32 )
  208. 9/tile_mode = 0
  209. 9/occluder_offset = Vector2( 16, 16 )
  210. 9/navigation_offset = Vector2( 16, 16 )
  211. 9/shape_offset = Vector2( 0, 0 )
  212. 9/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
  213. 9/shape_one_way = false
  214. 9/shape_one_way_margin = 0.0
  215. 9/shapes = [ ]
  216. 9/z_index = 0
  217. 10/name = "solid"
  218. 10/texture = ExtResource( 1 )
  219. 10/tex_offset = Vector2( 0, 0 )
  220. 10/modulate = Color( 1, 1, 1, 1 )
  221. 10/region = Rect2( 0, 32, 32, 32 )
  222. 10/tile_mode = 0
  223. 10/occluder_offset = Vector2( 16, 16 )
  224. 10/navigation_offset = Vector2( 16, 16 )
  225. 10/shape_offset = Vector2( 0, 0 )
  226. 10/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
  227. 10/shape_one_way = false
  228. 10/shape_one_way_margin = 0.0
  229. 10/shapes = [ ]
  230. 10/z_index = 0
  231. 11/name = "ceiling"
  232. 11/texture = ExtResource( 1 )
  233. 11/tex_offset = Vector2( 0, 0 )
  234. 11/modulate = Color( 1, 1, 1, 1 )
  235. 11/region = Rect2( 192, 32, 32, 32 )
  236. 11/tile_mode = 0
  237. 11/occluder_offset = Vector2( 16, 16 )
  238. 11/navigation_offset = Vector2( 16, 16 )
  239. 11/shape_offset = Vector2( 16, 16 )
  240. 11/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  241. 11/shape = SubResource( 3 )
  242. 11/shape_one_way = false
  243. 11/shape_one_way_margin = 1.0
  244. 11/shapes = [ {
  245. "autotile_coord": Vector2( 0, 0 ),
  246. "one_way": false,
  247. "one_way_margin": 1.0,
  248. "shape": SubResource( 3 ),
  249. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  250. } ]
  251. 11/z_index = 0
  252. 12/name = "ramp"
  253. 12/texture = ExtResource( 1 )
  254. 12/tex_offset = Vector2( 0, 0 )
  255. 12/modulate = Color( 1, 1, 1, 1 )
  256. 12/region = Rect2( 64, 64, 32, 64 )
  257. 12/tile_mode = 0
  258. 12/occluder_offset = Vector2( 16, 32 )
  259. 12/navigation_offset = Vector2( 16, 32 )
  260. 12/shape_offset = Vector2( 16, 32 )
  261. 12/shape_transform = Transform2D( 1, 0, 0, 1, 16, 32 )
  262. 12/shape = SubResource( 4 )
  263. 12/shape_one_way = false
  264. 12/shape_one_way_margin = 1.0
  265. 12/shapes = [ {
  266. "autotile_coord": Vector2( 0, 0 ),
  267. "one_way": false,
  268. "one_way_margin": 1.0,
  269. "shape": SubResource( 4 ),
  270. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 32 )
  271. } ]
  272. 12/z_index = 0
  273. 13/name = "ceiling2wall"
  274. 13/texture = ExtResource( 1 )
  275. 13/tex_offset = Vector2( 0, 0 )
  276. 13/modulate = Color( 1, 1, 1, 1 )
  277. 13/region = Rect2( 224, 32, 32, 32 )
  278. 13/tile_mode = 0
  279. 13/occluder_offset = Vector2( 16, 16 )
  280. 13/navigation_offset = Vector2( 16, 16 )
  281. 13/shape_offset = Vector2( 16, 16 )
  282. 13/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  283. 13/shape = SubResource( 5 )
  284. 13/shape_one_way = false
  285. 13/shape_one_way_margin = 1.0
  286. 13/shapes = [ {
  287. "autotile_coord": Vector2( 0, 0 ),
  288. "one_way": false,
  289. "one_way_margin": 1.0,
  290. "shape": SubResource( 5 ),
  291. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  292. } ]
  293. 13/z_index = 0
  294. 14/name = "platform_floor"
  295. 14/texture = ExtResource( 1 )
  296. 14/tex_offset = Vector2( 0, 0 )
  297. 14/modulate = Color( 1, 1, 1, 1 )
  298. 14/region = Rect2( 64, 0, 32, 32 )
  299. 14/tile_mode = 0
  300. 14/occluder_offset = Vector2( 16, 16 )
  301. 14/navigation_offset = Vector2( 16, 16 )
  302. 14/shape_offset = Vector2( 16, 16 )
  303. 14/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  304. 14/shape = SubResource( 6 )
  305. 14/shape_one_way = false
  306. 14/shape_one_way_margin = 1.0
  307. 14/shapes = [ {
  308. "autotile_coord": Vector2( 0, 0 ),
  309. "one_way": false,
  310. "one_way_margin": 1.0,
  311. "shape": SubResource( 6 ),
  312. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  313. } ]
  314. 14/z_index = 0
  315. 15/name = "platform_edge"
  316. 15/texture = ExtResource( 1 )
  317. 15/tex_offset = Vector2( 0, 0 )
  318. 15/modulate = Color( 1, 1, 1, 1 )
  319. 15/region = Rect2( 96, 0, 32, 32 )
  320. 15/tile_mode = 0
  321. 15/occluder_offset = Vector2( 16, 16 )
  322. 15/navigation_offset = Vector2( 16, 16 )
  323. 15/shape_offset = Vector2( 16, 16 )
  324. 15/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
  325. 15/shape = SubResource( 7 )
  326. 15/shape_one_way = false
  327. 15/shape_one_way_margin = 1.0
  328. 15/shapes = [ {
  329. "autotile_coord": Vector2( 0, 0 ),
  330. "one_way": false,
  331. "one_way_margin": 1.0,
  332. "shape": SubResource( 7 ),
  333. "shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
  334. } ]
  335. 15/z_index = 0