tileset_edit.tscn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. [gd_scene load_steps=14 format=1]
  2. [ext_resource path="res://tiles_demo.png" type="Texture" id=1]
  3. [sub_resource type="ConvexPolygonShape2D" id=1]
  4. custom_solver_bias = 0.0
  5. points = Vector2Array( -32, -24, 32, -24, 32, 32, -32, 32 )
  6. [sub_resource type="ConvexPolygonShape2D" id=2]
  7. custom_solver_bias = 0.0
  8. points = Vector2Array( -32, 32, -32, -24, 24, -24, 24, 32 )
  9. [sub_resource type="ConvexPolygonShape2D" id=3]
  10. custom_solver_bias = 0.0
  11. points = Vector2Array( -32, 32, -32, -32, 24, -32, 24, 32 )
  12. [sub_resource type="ConvexPolygonShape2D" id=4]
  13. custom_solver_bias = 0.0
  14. points = Vector2Array( -64, 32, -64, -32, -8, -32, -8, 32 )
  15. [sub_resource type="ConvexPolygonShape2D" id=5]
  16. custom_solver_bias = 0.0
  17. points = Vector2Array( -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 )
  18. [sub_resource type="ConvexPolygonShape2D" id=6]
  19. custom_solver_bias = 0.0
  20. points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 )
  21. [sub_resource type="ConvexPolygonShape2D" id=7]
  22. custom_solver_bias = 0.0
  23. points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 )
  24. [sub_resource type="ConvexPolygonShape2D" id=8]
  25. custom_solver_bias = 0.0
  26. points = Vector2Array( -32, -32, 32, -32, 32, 32, -32, 32 )
  27. [sub_resource type="ConvexPolygonShape2D" id=9]
  28. custom_solver_bias = 0.0
  29. points = Vector2Array( -32, -56, 32, 8, 32, 64, -32, 64 )
  30. [sub_resource type="ConvexPolygonShape2D" id=10]
  31. custom_solver_bias = 0.0
  32. points = Vector2Array( -32, 32, -32, -32, 24, -32, 24, 32 )
  33. [sub_resource type="ConvexPolygonShape2D" id=11]
  34. custom_solver_bias = 0.0
  35. points = Vector2Array( -32, -24, 32, -24, 32, 24, -32, 24 )
  36. [sub_resource type="ConvexPolygonShape2D" id=12]
  37. custom_solver_bias = 0.0
  38. points = Vector2Array( -32, -24, 24, -24, 24, 24, -32, 24 )
  39. [node name="Node" type="Node"]
  40. [node name="floor" type="Sprite" parent="."]
  41. texture = ExtResource( 1 )
  42. region = true
  43. region_rect = Rect2( 0, 0, 64, 64 )
  44. [node name="collision" type="StaticBody2D" parent="floor"]
  45. input/pickable = false
  46. shapes/0/shape = SubResource( 1 )
  47. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  48. shapes/0/trigger = false
  49. collision/layers = 1
  50. collision/mask = 1
  51. constant_linear_velocity = Vector2( 0, 0 )
  52. constant_angular_velocity = 0.0
  53. friction = 1.0
  54. bounce = 0.0
  55. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="floor/collision"]
  56. build_mode = 0
  57. polygon = Vector2Array( 32, -24, 32, 32, -32, 32, -32, -24 )
  58. shape_range = Vector2( -1, -1 )
  59. trigger = false
  60. [node name="edge" type="Sprite" parent="."]
  61. transform/pos = Vector2( 64, 0 )
  62. texture = ExtResource( 1 )
  63. region = true
  64. region_rect = Rect2( 64, 0, 64, 64 )
  65. [node name="collision" type="StaticBody2D" parent="edge"]
  66. input/pickable = false
  67. shapes/0/shape = SubResource( 2 )
  68. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  69. shapes/0/trigger = false
  70. collision/layers = 1
  71. collision/mask = 1
  72. constant_linear_velocity = Vector2( 0, 0 )
  73. constant_angular_velocity = 0.0
  74. friction = 1.0
  75. bounce = 0.0
  76. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="edge/collision"]
  77. build_mode = 0
  78. polygon = Vector2Array( -32, -24, 24, -24, 24, 32, -32, 32 )
  79. shape_range = Vector2( -1, -1 )
  80. trigger = false
  81. [node name="wall" type="Sprite" parent="."]
  82. transform/pos = Vector2( 64, 64 )
  83. texture = ExtResource( 1 )
  84. region = true
  85. region_rect = Rect2( 64, 64, 64, 64 )
  86. [node name="collision" type="StaticBody2D" parent="wall"]
  87. input/pickable = false
  88. shapes/0/shape = SubResource( 3 )
  89. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  90. shapes/0/trigger = false
  91. collision/layers = 1
  92. collision/mask = 1
  93. constant_linear_velocity = Vector2( 0, 0 )
  94. constant_angular_velocity = 0.0
  95. friction = 1.0
  96. bounce = 0.0
  97. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="wall/collision"]
  98. build_mode = 0
  99. polygon = Vector2Array( -32, -32, 24, -32, 24, 32, -32, 32 )
  100. shape_range = Vector2( -1, -1 )
  101. trigger = false
  102. [node name="wall_deco" type="Sprite" parent="."]
  103. transform/pos = Vector2( 96, 128 )
  104. texture = ExtResource( 1 )
  105. region = true
  106. region_rect = Rect2( 320, 128, 128, 64 )
  107. [node name="collision" type="StaticBody2D" parent="wall_deco"]
  108. input/pickable = false
  109. shapes/0/shape = SubResource( 4 )
  110. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  111. shapes/0/trigger = false
  112. collision/layers = 1
  113. collision/mask = 1
  114. constant_linear_velocity = Vector2( 0, 0 )
  115. constant_angular_velocity = 0.0
  116. friction = 1.0
  117. bounce = 0.0
  118. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="wall_deco/collision"]
  119. build_mode = 0
  120. polygon = Vector2Array( -64, -32, -8, -32, -8, 32, -64, 32 )
  121. shape_range = Vector2( -1, -1 )
  122. trigger = false
  123. [node name="corner" type="Sprite" parent="."]
  124. transform/pos = Vector2( 64, 192 )
  125. texture = ExtResource( 1 )
  126. region = true
  127. region_rect = Rect2( 64, 128, 64, 64 )
  128. [node name="collision" type="StaticBody2D" parent="corner"]
  129. input/pickable = false
  130. shapes/0/shape = SubResource( 5 )
  131. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  132. shapes/0/trigger = false
  133. collision/layers = 1
  134. collision/mask = 1
  135. constant_linear_velocity = Vector2( 0, 0 )
  136. constant_angular_velocity = 0.0
  137. friction = 1.0
  138. bounce = 0.0
  139. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="corner/collision"]
  140. build_mode = 0
  141. polygon = Vector2Array( -32, -32, 24, -32, 32, -24, 32, 32, -32, 32 )
  142. shape_range = Vector2( -1, -1 )
  143. trigger = false
  144. [node name="flowers" type="Sprite" parent="."]
  145. transform/pos = Vector2( 128, 192 )
  146. texture = ExtResource( 1 )
  147. region = true
  148. region_rect = Rect2( 192, 192, 64, 64 )
  149. [node name="collision" type="StaticBody2D" parent="flowers"]
  150. input/pickable = false
  151. shapes/0/shape = SubResource( 6 )
  152. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  153. shapes/0/trigger = false
  154. collision/layers = 1
  155. collision/mask = 1
  156. constant_linear_velocity = Vector2( 0, 0 )
  157. constant_angular_velocity = 0.0
  158. friction = 1.0
  159. bounce = 0.0
  160. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="flowers/collision"]
  161. build_mode = 0
  162. polygon = Vector2Array( -32, 32, 32, 32, 32, -24, -32, -24 )
  163. shape_range = Vector2( -1, -1 )
  164. trigger = false
  165. [node name="tree_base" type="Sprite" parent="."]
  166. transform/pos = Vector2( 192, 192 )
  167. texture = ExtResource( 1 )
  168. region = true
  169. region_rect = Rect2( 256, 192, 64, 64 )
  170. [node name="collision" type="StaticBody2D" parent="tree_base"]
  171. input/pickable = false
  172. shapes/0/shape = SubResource( 7 )
  173. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  174. shapes/0/trigger = false
  175. collision/layers = 1
  176. collision/mask = 1
  177. constant_linear_velocity = Vector2( 0, 0 )
  178. constant_angular_velocity = 0.0
  179. friction = 1.0
  180. bounce = 0.0
  181. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="tree_base/collision"]
  182. build_mode = 0
  183. polygon = Vector2Array( -32, 32, 32, 32, 32, -24, -32, -24 )
  184. shape_range = Vector2( -1, -1 )
  185. trigger = false
  186. [node name="tree_mid" type="Sprite" parent="."]
  187. transform/pos = Vector2( 192, 128 )
  188. texture = ExtResource( 1 )
  189. region = true
  190. region_rect = Rect2( 256, 128, 64, 64 )
  191. [node name="tree_mid 2" type="Sprite" parent="."]
  192. transform/pos = Vector2( 192, 64 )
  193. texture = ExtResource( 1 )
  194. region = true
  195. region_rect = Rect2( 256, 64, 64, 64 )
  196. [node name="tree_top" type="Sprite" parent="."]
  197. transform/pos = Vector2( 192, 0 )
  198. texture = ExtResource( 1 )
  199. region = true
  200. region_rect = Rect2( 256, 0, 64, 64 )
  201. [node name="solid" type="Sprite" parent="."]
  202. transform/pos = Vector2( 0, 64 )
  203. texture = ExtResource( 1 )
  204. region = true
  205. region_rect = Rect2( 0, 64, 64, 64 )
  206. [node name="ceiling" type="Sprite" parent="."]
  207. transform/pos = Vector2( 0, 128 )
  208. texture = ExtResource( 1 )
  209. region = true
  210. region_rect = Rect2( 384, 64, 64, 64 )
  211. [node name="collision" type="StaticBody2D" parent="ceiling"]
  212. input/pickable = false
  213. shapes/0/shape = SubResource( 8 )
  214. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  215. shapes/0/trigger = false
  216. collision/layers = 1
  217. collision/mask = 1
  218. constant_linear_velocity = Vector2( 0, 0 )
  219. constant_angular_velocity = 0.0
  220. friction = 1.0
  221. bounce = 0.0
  222. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ceiling/collision"]
  223. build_mode = 0
  224. polygon = Vector2Array( 32, -32, 32, 32, -32, 32, -32, -32 )
  225. shape_range = Vector2( -1, -1 )
  226. trigger = false
  227. [node name="ramp" type="Sprite" parent="."]
  228. transform/pos = Vector2( 256, 224 )
  229. texture = ExtResource( 1 )
  230. region = true
  231. region_rect = Rect2( 128, 128, 64, 128 )
  232. [node name="collision" type="StaticBody2D" parent="ramp"]
  233. input/pickable = false
  234. shapes/0/shape = SubResource( 9 )
  235. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  236. shapes/0/trigger = false
  237. collision/layers = 1
  238. collision/mask = 1
  239. constant_linear_velocity = Vector2( 0, 0 )
  240. constant_angular_velocity = 0.0
  241. friction = 1.0
  242. bounce = 0.0
  243. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ramp/collision"]
  244. build_mode = 0
  245. polygon = Vector2Array( -32, -56, 32, 8, 32, 64, -32, 64 )
  246. shape_range = Vector2( -1, -1 )
  247. trigger = false
  248. [node name="ceiling2wall" type="Sprite" parent="."]
  249. transform/pos = Vector2( 0, 192 )
  250. texture = ExtResource( 1 )
  251. region = true
  252. region_rect = Rect2( 448, 64, 64, 64 )
  253. [node name="collision" type="StaticBody2D" parent="ceiling2wall"]
  254. input/pickable = false
  255. shapes/0/shape = SubResource( 10 )
  256. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  257. shapes/0/trigger = false
  258. collision/layers = 1
  259. collision/mask = 1
  260. constant_linear_velocity = Vector2( 0, 0 )
  261. constant_angular_velocity = 0.0
  262. friction = 1.0
  263. bounce = 0.0
  264. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ceiling2wall/collision"]
  265. build_mode = 0
  266. polygon = Vector2Array( -32, -32, 24, -32, 24, 32, -32, 32 )
  267. shape_range = Vector2( -1, -1 )
  268. trigger = false
  269. [node name="platform_floor" type="Sprite" parent="."]
  270. transform/pos = Vector2( 0, 256 )
  271. texture = ExtResource( 1 )
  272. region = true
  273. region_rect = Rect2( 128, 0, 64, 64 )
  274. [node name="collision" type="StaticBody2D" parent="platform_floor"]
  275. input/pickable = false
  276. shapes/0/shape = SubResource( 11 )
  277. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  278. shapes/0/trigger = false
  279. collision/layers = 1
  280. collision/mask = 1
  281. constant_linear_velocity = Vector2( 0, 0 )
  282. constant_angular_velocity = 0.0
  283. friction = 1.0
  284. bounce = 0.0
  285. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform_floor/collision"]
  286. build_mode = 0
  287. polygon = Vector2Array( 32, -24, 32, 24, -32, 24, -32, -24 )
  288. shape_range = Vector2( -1, -1 )
  289. trigger = false
  290. [node name="platform_edge" type="Sprite" parent="."]
  291. transform/pos = Vector2( 64, 256 )
  292. texture = ExtResource( 1 )
  293. region = true
  294. region_rect = Rect2( 192, 0, 64, 64 )
  295. [node name="collision" type="StaticBody2D" parent="platform_edge"]
  296. input/pickable = false
  297. shapes/0/shape = SubResource( 12 )
  298. shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
  299. shapes/0/trigger = false
  300. collision/layers = 1
  301. collision/mask = 1
  302. constant_linear_velocity = Vector2( 0, 0 )
  303. constant_angular_velocity = 0.0
  304. friction = 1.0
  305. bounce = 0.0
  306. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform_edge/collision"]
  307. build_mode = 0
  308. polygon = Vector2Array( 24, -24, 24, 24, -32, 24, -32, -24 )
  309. shape_range = Vector2( -1, -1 )
  310. trigger = false
  311. [node name="help" type="Label" parent="."]
  312. focus/ignore_mouse = true
  313. focus/stop_mouse = true
  314. size_flags/horizontal = 2
  315. margin/left = 1.0
  316. margin/top = 331.0
  317. margin/right = 727.0
  318. margin/bottom = 422.0
  319. text = "This scene serves as a tool for editing the tileset.\nNodes (sprites) and their respective collisionsare edited here.\n\nTo create a tileset from this, a \"TileSet\" resoucre must be created. Use the helper in: Scene -> Convert To -> TileSet.\nThis will save a tileset. Saving over it will merge your changes.\n\nFinally, the saved tileset resource (tileset.tres in this case), can be opened to be used into a TileMap node for editing a tile map."
  320. percent_visible = 1.0
  321. lines_skipped = 0
  322. max_lines_visible = -1