-
Notifications
You must be signed in to change notification settings - Fork 1
/
FirstScene.tscn
207 lines (179 loc) · 8.12 KB
/
FirstScene.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[gd_scene load_steps=45 format=2]
[ext_resource path="res://FirstScene.gd" type="Script" id=1]
[ext_resource path="res://62999356-seamless-game-background-flat-style-2d-game-application.jpg" type="Texture" id=2]
[ext_resource path="res://RigidBody2D.gd" type="Script" id=3]
[ext_resource path="res://sprite/freeknight/png/Jump (1).png" type="Texture" id=4]
[ext_resource path="res://sprite/freeknight/png/Jump (2).png" type="Texture" id=5]
[ext_resource path="res://sprite/freeknight/png/Jump (3).png" type="Texture" id=6]
[ext_resource path="res://sprite/freeknight/png/Jump (4).png" type="Texture" id=7]
[ext_resource path="res://sprite/freeknight/png/Jump (5).png" type="Texture" id=8]
[ext_resource path="res://sprite/freeknight/png/Jump (6).png" type="Texture" id=9]
[ext_resource path="res://sprite/freeknight/png/Jump (7).png" type="Texture" id=10]
[ext_resource path="res://sprite/freeknight/png/Jump (8).png" type="Texture" id=11]
[ext_resource path="res://sprite/freeknight/png/Jump (9).png" type="Texture" id=12]
[ext_resource path="res://sprite/freeknight/png/Jump (10).png" type="Texture" id=13]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (1).png" type="Texture" id=14]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (2).png" type="Texture" id=15]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (3).png" type="Texture" id=16]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (4).png" type="Texture" id=17]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (5).png" type="Texture" id=18]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (6).png" type="Texture" id=19]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (7).png" type="Texture" id=20]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (8).png" type="Texture" id=21]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (9).png" type="Texture" id=22]
[ext_resource path="res://sprite/freeknight/png/JumpAttack (10).png" type="Texture" id=23]
[ext_resource path="res://sprite/freeknight/png/Run (1).png" type="Texture" id=24]
[ext_resource path="res://sprite/freeknight/png/Run (2).png" type="Texture" id=25]
[ext_resource path="res://sprite/freeknight/png/Run (3).png" type="Texture" id=26]
[ext_resource path="res://sprite/freeknight/png/Run (5).png" type="Texture" id=27]
[ext_resource path="res://sprite/freeknight/png/Run (4).png" type="Texture" id=28]
[ext_resource path="res://sprite/freeknight/png/Run (6).png" type="Texture" id=29]
[ext_resource path="res://sprite/freeknight/png/Run (7).png" type="Texture" id=30]
[ext_resource path="res://sprite/freeknight/png/Run (8).png" type="Texture" id=31]
[ext_resource path="res://sprite/freeknight/png/Run (9).png" type="Texture" id=32]
[ext_resource path="res://sprite/freeknight/png/Run (10).png" type="Texture" id=33]
[ext_resource path="res://sprite/freeknight/png/Walk (10).png" type="Texture" id=34]
[ext_resource path="res://AnimatedSprite.gd" type="Script" id=35]
[ext_resource path="res://Whoosh .wav" type="AudioStream" id=36]
[ext_resource path="res://CollisionShape2D.gd" type="Script" id=37]
[ext_resource path="res://Button.gd" type="Script" id=38]
[ext_resource path="res://61155.svg" type="Texture" id=39]
[ext_resource path="res://Button2.gd" type="Script" id=40]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ) ],
"loop": false,
"name": "jump",
"speed": 20.0
}, {
"frames": [ ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 21 ), ExtResource( 22 ), ExtResource( 23 ) ],
"loop": true,
"name": "jumpattack",
"speed": 20.0
}, {
"frames": [ ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ), ExtResource( 33 ) ],
"loop": true,
"name": "run",
"speed": 9.0
}, {
"frames": [ ExtResource( 34 ) ],
"loop": true,
"name": "stay",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 107.964, 163.727 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 600, 9.87926 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 10, 300 )
[node name="WorldRoot" type="Node"]
script = ExtResource( 1 )
[node name="62999356-seamless-game-background-flat-style-2d-game-application" type="Sprite" parent="."]
position = Vector2( 522.483, 300.032 )
scale = Vector2( 0.810542, 0.92065 )
texture = ExtResource( 2 )
[node name="RigidBody2D" type="RigidBody2D" parent="."]
mode = 2
mass = 108.56
gravity_scale = 45.0
can_sleep = false
angular_damp = 0.0
script = ExtResource( 3 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="RigidBody2D"]
position = Vector2( 170.369, 366.975 )
scale = Vector2( 0.515573, 0.505953 )
frames = SubResource( 1 )
animation = "stay"
speed_scale = 1.48
playing = true
script = ExtResource( 35 )
__meta__ = {
"_edit_ik_": true
}
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="RigidBody2D/AnimatedSprite"]
stream = ExtResource( 36 )
max_distance = 1000.0
attenuation = 0.000205297
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2( 168.045, 366.071 )
shape = SubResource( 2 )
script = ExtResource( 37 )
[node name="bottom" type="StaticBody2D" parent="."]
editor/display_folded = true
input_pickable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="bottom"]
position = Vector2( 491.942, 540.216 )
shape = SubResource( 3 )
[node name="top" type="StaticBody2D" parent="."]
editor/display_folded = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="top"]
position = Vector2( 522.975, 10.3446 )
shape = SubResource( 3 )
[node name="left_wall" type="StaticBody2D" parent="."]
editor/display_folded = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="left_wall"]
position = Vector2( 5.74698, 233.327 )
shape = SubResource( 4 )
[node name="right_wall" type="StaticBody2D" parent="."]
editor/display_folded = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="right_wall"]
position = Vector2( 1039.05, 249.419 )
shape = SubResource( 4 )
[node name="Button" type="Button" parent="."]
editor/display_folded = true
anchor_left = 1.0
anchor_right = 1.0
margin_left = -51.9949
margin_bottom = 52.0
script = ExtResource( 38 )
[node name="61155" type="TextureRect" parent="Button"]
margin_left = 3.1225
margin_top = 3.38713
margin_right = 49.1225
margin_bottom = 48.3871
texture = ExtResource( 39 )
expand = true
[node name="Button2" type="Button" parent="."]
editor/display_folded = true
margin_right = 214.0
margin_bottom = 33.0
text = "Get Data from Server"
script = ExtResource( 40 )
[node name="HTTPRequest" type="HTTPRequest" parent="Button2"]
[node name="Label" type="Label" parent="."]
margin_left = 219.0
margin_top = 7.0
margin_right = 964.0
margin_bottom = 56.0
[node name="Save" type="Button" parent="."]
margin_left = 497.321
margin_top = 0.0856857
margin_right = 551.321
margin_bottom = 50.0857
text = "Save"
[node name="load" type="Button" parent="."]
margin_left = 552.0
margin_top = 1.0
margin_right = 608.0
margin_bottom = 50.0
text = "load"
[node name="newGame" type="Button" parent="."]
margin_left = 609.0
margin_top = 1.0
margin_right = 655.0
margin_bottom = 50.0
text = "new"
[node name="removeSaveFile" type="Button" parent="."]
margin_left = 655.0
margin_top = -1.0
margin_right = 708.0
margin_bottom = 50.0
text = "delete"
[connection signal="body_entered" from="RigidBody2D" to="RigidBody2D" method="_on_RigidBody2D_body_entered"]
[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]
[connection signal="pressed" from="Button2" to="Button2" method="_on_Button2_pressed"]
[connection signal="pressed" from="Save" to="." method="_on_Save_pressed"]
[connection signal="pressed" from="load" to="." method="_on_load_pressed"]
[connection signal="pressed" from="newGame" to="." method="_on_newGame_pressed"]
[connection signal="pressed" from="removeSaveFile" to="." method="_on_removeSaveFile_pressed"]