-
Notifications
You must be signed in to change notification settings - Fork 0
/
Floor.tscn
173 lines (154 loc) · 6.2 KB
/
Floor.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[gd_scene load_steps=17 format=2]
[ext_resource path="res://draw_rails.gd" type="Script" id=1]
[ext_resource path="res://Tileset/tiless.tres" type="TileSet" id=2]
[ext_resource path="res://Assets/Kenney/Isometric/tile_N.png" type="Texture" id=3]
[ext_resource path="res://Assets/Kenney/Isometric/tile_rock_S.png" type="Texture" id=4]
[ext_resource path="res://Assets/Kenney/Isometric/tile_spawnRound_S.png" type="Texture" id=5]
[ext_resource path="res://Assets/Kenney/Isometric/tile_treeDouble_E.png" type="Texture" id=6]
[ext_resource path="res://Zug.tscn" type="PackedScene" id=9]
[ext_resource path="res://Assets/Kenney/Isometric/tile_tree_N.png" type="Texture" id=10]
[ext_resource path="res://RemoteTransform2D.gd" type="Script" id=13]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( )
}
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( 18, 65.5, 62, 47.5, 85, 49.5, 96, 57.5, 115, 72.5, 100, 90.5, 74, 87.5, 68, 92.5, 43, 91.5, 37, 88.5, 21, 83.5 )
[sub_resource type="ConvexPolygonShape2D" id=3]
points = PoolVector2Array( 43, 121.5, 43, 87.5, 65, 74.5, 87, 85.5, 87, 118.5, 81, 126.5, 66, 131.5 )
[sub_resource type="ConvexPolygonShape2D" id=4]
points = PoolVector2Array( 43, 59.5, 63, 46.5, 89, 58.5, 81, 69.5, 65, 73.5, 48, 70.5 )
[sub_resource type="TileSet" id=5]
0/name = "tile_N.png 0"
0/texture = ExtResource( 3 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 190, 266, 132, 84 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shapes = [ ]
0/z_index = 0
1/name = "tile_rock_S.png 1"
1/texture = ExtResource( 4 )
1/tex_offset = Vector2( 0, -42 )
1/modulate = Color( 1, 1, 1, 1 )
1/region = Rect2( 190, 224, 132, 126 )
1/tile_mode = 0
1/occluder_offset = Vector2( 0, -42 )
1/navigation_offset = Vector2( 0, 0 )
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 2 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, -42 )
} ]
1/z_index = 0
2/name = "tile_spawnRound_S.png 2"
2/texture = ExtResource( 5 )
2/tex_offset = Vector2( 0, 0 )
2/modulate = Color( 1, 1, 1, 1 )
2/region = Rect2( 190, 266, 132, 84 )
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shapes = [ ]
2/z_index = 0
3/name = "tile_treeDouble_E.png 3"
3/texture = ExtResource( 6 )
3/tex_offset = Vector2( 0, -84 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 190, 182, 132, 168 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 3 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, -84 )
} ]
3/z_index = 0
4/name = "tile_tree_N.png 4"
4/texture = ExtResource( 10 )
4/tex_offset = Vector2( 0, -42 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 190, 224, 132, 126 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 4 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, -42 )
} ]
4/z_index = 0
[sub_resource type="TileSet" id=6]
[sub_resource type="GDScript" id=7]
script/source = "extends StaticBody2D
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func animation(motion):
if motion.y > 0 and motion.x > 0:
$AnimatedSprite.frame = 2
elif motion.y > 0 and motion.x < 0:
$AnimatedSprite.frame = 4
elif motion.y < 0 and motion.x > 0:
$AnimatedSprite.frame = 0
elif motion.y < 0 and motion.x < 0:
$AnimatedSprite.frame = 6
elif motion.x > 0:
$AnimatedSprite.frame = 1
elif motion.x < 0:
$AnimatedSprite.frame = 5
elif motion.y > 0:
$AnimatedSprite.frame = 3
elif motion.y < 0:
$AnimatedSprite.frame = 7
"
[node name="YSort" type="YSort"]
script = ExtResource( 1 )
[node name="Path2D" type="Path2D" parent="."]
position = Vector2( 0, 60 )
curve = SubResource( 1 )
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
rotation = 0.515823
rotate = false
cubic_interp = false
loop = false
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Path2D/PathFollow2D"]
rotation = -0.516617
remote_path = NodePath("../../../Zug")
script = ExtResource( 13 )
[node name="start_envirement" type="TileMap" parent="."]
mode = 1
tile_set = SubResource( 5 )
cell_size = Vector2( 128, 64 )
cell_y_sort = true
format = 1
tile_data = PoolIntArray( 65536, 1, 0, 65537, 0, 0, 65538, 0, 0, 65539, 1, 0, 65540, 2, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 131073, 1, 0, 131074, 0, 0, 131075, 1, 0, 131076, 4, 0, 131077, 3, 0, 131078, 4, 0, 131079, 0, 0, 131080, 0, 0, 131081, 4, 0, 131082, 3, 0, 131083, 4, 0, 131084, 0, 0, 131085, 1, 0, 131086, 3, 0, 131087, 0, 0, 131088, 1, 0, 196610, 1, 0, 196611, 0, 0, 196612, 0, 0, 196613, 3, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 1, 0, 262147, 1, 0, 262148, 0, 0, 262149, 4, 0, 262150, 0, 0, 262151, 3, 0, 262152, 0, 0, 262153, 3, 0, 262154, 0, 0, 262155, 1, 0, 262156, 3, 0, 262157, 0, 0, 262158, 1, 0, 327684, 1, 0, 327685, 0, 0, 327686, 0, 0, 327687, 1, 0, 327688, 1, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 1, 0, 393221, 1, 0, 393222, 0, 0, 393223, 0, 0, 393224, 1, 0, 393225, 0, 0, 393226, 1, 0, 393227, 0, 0, 393228, 1, 0, 393229, 1, 0, 458758, 1, 0, 458759, 0, 0, 458760, 0, 0, 458761, 0, 0, 458762, 0, 0, 458763, 1, 0, 524295, 1, 0, 524296, 0, 0, 524297, 0, 0, 524298, 1, 0, 589832, 1, 0, 589833, 1, 0 )
[node name="deko" type="TileMap" parent="."]
mode = 1
tile_set = SubResource( 6 )
cell_size = Vector2( 128, 64 )
cell_y_sort = true
format = 1
[node name="Rails" type="TileMap" parent="."]
mode = 1
tile_set = ExtResource( 2 )
cell_size = Vector2( 128, 64 )
cell_y_sort = true
format = 1
[node name="Zug" parent="." instance=ExtResource( 9 )]
position = Vector2( 0, 60 )
rotation = -0.000793994
scale = Vector2( 1, 1 )
script = SubResource( 7 )