-
Notifications
You must be signed in to change notification settings - Fork 0
/
TilesetEdit.tscn
158 lines (113 loc) · 5.45 KB
/
TilesetEdit.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[gd_scene load_steps=2 format=2]
[ext_resource path="res://tiles_demo.png" type="Texture" id=1]
[node name="TilesetEdit" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="Floor"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Floor/Collision"]
polygon = PoolVector2Array( 16, -12, 16, 16, -16, 16, -16, -12 )
[node name="Edge" type="Sprite" parent="."]
position = Vector2( 32, 0 )
texture = ExtResource( 1 )
region_rect = Rect2( 32, 0, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="Edge"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Edge/Collision"]
polygon = PoolVector2Array( -16, -12, 12, -12, 12, 16, -16, 16 )
[node name="Wall" type="Sprite" parent="."]
position = Vector2( 32, 32 )
texture = ExtResource( 1 )
region_rect = Rect2( 32, 32, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="Wall"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Wall/Collision"]
polygon = PoolVector2Array( -16, -16, 12, -16, 12, 16, -16, 16 )
[node name="WallDeco" type="Sprite" parent="."]
position = Vector2( 48, 64 )
texture = ExtResource( 1 )
region_rect = Rect2( 160, 64, 64, 32 )
[node name="Collision" type="StaticBody2D" parent="WallDeco"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="WallDeco/Collision"]
polygon = PoolVector2Array( -32, -16, -4, -16, -4, 16, -32, 16 )
[node name="Corner" type="Sprite" parent="."]
position = Vector2( 32, 96 )
texture = ExtResource( 1 )
region_rect = Rect2( 32, 64, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="Corner"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Corner/Collision"]
polygon = PoolVector2Array( -16, -16, 12, -16, 16, -12, 16, 16, -16, 16 )
[node name="Flowers" type="Sprite" parent="."]
position = Vector2( 64, 96 )
texture = ExtResource( 1 )
region_rect = Rect2( 96, 96, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="Flowers"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Flowers/Collision"]
polygon = PoolVector2Array( -16, 16, 16, 16, 16, -12, -16, -12 )
[node name="TreeBase" type="Sprite" parent="."]
position = Vector2( 96, 96 )
texture = ExtResource( 1 )
region_rect = Rect2( 128, 96, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="TreeBase"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="TreeBase/Collision"]
polygon = PoolVector2Array( -16, 16, 16, 16, 16, -12, -16, -12 )
[node name="TreeMid" type="Sprite" parent="."]
position = Vector2( 96, 64 )
texture = ExtResource( 1 )
region_rect = Rect2( 128, 64, 32, 32 )
[node name="TreeMid2" type="Sprite" parent="."]
position = Vector2( 96, 32 )
texture = ExtResource( 1 )
region_rect = Rect2( 128, 32, 32, 32 )
[node name="TreeTop" type="Sprite" parent="."]
position = Vector2( 96, 0 )
texture = ExtResource( 1 )
region_rect = Rect2( 128, 0, 32, 32 )
[node name="Solid" type="Sprite" parent="."]
position = Vector2( 0, 32 )
texture = ExtResource( 1 )
region_rect = Rect2( 0, 32, 32, 32 )
[node name="Ceiling" type="Sprite" parent="."]
position = Vector2( 0, 64 )
texture = ExtResource( 1 )
region_rect = Rect2( 192, 32, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="Ceiling"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ceiling/Collision"]
polygon = PoolVector2Array( 16, -16, 16, 16, -16, 16, -16, -16 )
[node name="Ramp" type="Sprite" parent="."]
position = Vector2( 128, 112 )
texture = ExtResource( 1 )
region_rect = Rect2( 64, 64, 32, 64 )
[node name="Collision" type="StaticBody2D" parent="Ramp"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ramp/Collision"]
polygon = PoolVector2Array( -16, -28, 16, 4, 16, 32, -16, 32 )
[node name="CeilingWall" type="Sprite" parent="."]
position = Vector2( 0, 96 )
texture = ExtResource( 1 )
region_rect = Rect2( 224, 32, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="CeilingWall"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="CeilingWall/Collision"]
polygon = PoolVector2Array( -16, -16, 12, -16, 12, 16, -16, 16 )
[node name="PlatformFloor" type="Sprite" parent="."]
position = Vector2( 0, 128 )
texture = ExtResource( 1 )
region_rect = Rect2( 64, 0, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="PlatformFloor"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformFloor/Collision"]
polygon = PoolVector2Array( 16, -12, 16, 12, -16, 12, -16, -12 )
[node name="PlatformEdge" type="Sprite" parent="."]
position = Vector2( 32, 128 )
texture = ExtResource( 1 )
region_rect = Rect2( 96, 0, 32, 32 )
[node name="Collision" type="StaticBody2D" parent="PlatformEdge"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformEdge/Collision"]
polygon = PoolVector2Array( 12, -12, 12, 12, -16, 12, -16, -12 )
[node name="Help" type="Label" parent="."]
margin_left = 1.0
margin_top = 331.0
margin_right = 727.0
margin_bottom = 422.0
size_flags_horizontal = 2
text = "This scene serves as a tool for editing the tileset.
Nodes (sprites) and their respective collisionsare edited here.
To create a tileset from this, a \"TileSet\" resoucre must be created. Use the helper in: Scene -> Convert To -> TileSet.
This will save a tileset. Saving over it will merge your changes.
Finally, the saved tileset resource (tileset.tres in this case), can be opened to be used into a TileMap node for editing a tile map."