mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
113 lines
2.8 KiB
Plaintext
113 lines
2.8 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://Main.gd" type="Script" id=1]
|
|
[ext_resource path="res://Mob.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
|
|
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://art/House In a Forest Loop.ogg" type="AudioStream" id=5]
|
|
[ext_resource path="res://art/gameover.wav" type="AudioStream" id=6]
|
|
|
|
[sub_resource type="Curve2D" id=1]
|
|
|
|
bake_interval = 5.0
|
|
_data = {
|
|
"points": PoolVector2Array( 0, 0, 0, 0, 1.70602, 3.56798, 0, 0, 0, 0, 482.263, 3.26522, 0, 0, 0, 0, 480.489, 729.458, 0, 0, 0, 0, 0.794434, 732.118, 0, 0, 0, 0, 1.97066, 3.83263 )
|
|
}
|
|
|
|
[node name="Main" type="Node" index="0"]
|
|
|
|
script = ExtResource( 1 )
|
|
Mob = ExtResource( 2 )
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 486.0
|
|
margin_bottom = 734.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
color = Color( 0.253451, 0.425288, 0.429412, 1 )
|
|
|
|
[node name="Player" parent="." index="1" instance=ExtResource( 3 )]
|
|
|
|
[node name="MobTimer" type="Timer" parent="." index="2"]
|
|
|
|
process_mode = 1
|
|
wait_time = 0.5
|
|
one_shot = false
|
|
autostart = false
|
|
|
|
[node name="ScoreTimer" type="Timer" parent="." index="3"]
|
|
|
|
process_mode = 1
|
|
wait_time = 1.0
|
|
one_shot = false
|
|
autostart = false
|
|
|
|
[node name="StartTimer" type="Timer" parent="." index="4"]
|
|
|
|
process_mode = 1
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
autostart = false
|
|
|
|
[node name="StartPosition" type="Position2D" parent="." index="5"]
|
|
|
|
position = Vector2( 240, 450 )
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="HUD" parent="." index="6" instance=ExtResource( 4 )]
|
|
|
|
transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
|
|
[node name="Music" type="AudioStreamPlayer" parent="." index="7"]
|
|
|
|
stream = ExtResource( 5 )
|
|
volume_db = -8.0
|
|
autoplay = false
|
|
mix_target = 0
|
|
bus = "Master"
|
|
|
|
[node name="DeathSound" type="AudioStreamPlayer" parent="." index="8"]
|
|
|
|
stream = ExtResource( 6 )
|
|
volume_db = -5.0
|
|
autoplay = false
|
|
mix_target = 0
|
|
bus = "Master"
|
|
|
|
[node name="MobPath" type="Path2D" parent="." index="9"]
|
|
|
|
curve = SubResource( 1 )
|
|
|
|
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath" index="0"]
|
|
|
|
position = Vector2( 1.70602, 3.56798 )
|
|
rotation = -0.000630111
|
|
offset = 0.0
|
|
h_offset = 0.0
|
|
v_offset = 0.0
|
|
rotate = true
|
|
cubic_interp = true
|
|
loop = true
|
|
lookahead = 4.0
|
|
|
|
[connection signal="hit" from="Player" to="." method="game_over"]
|
|
|
|
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
|
|
|
|
[connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]
|
|
|
|
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
|
|
|
|
[connection signal="start_game" from="HUD" to="." method="new_game"]
|
|
|
|
|