[gd_scene load_steps=8 format=2] [ext_resource path="res://Main.cs" 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] _data = { "points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 0) } [node name="Main" type="Node"] script = ExtResource( 1 ) mobScene = ExtResource( 2 ) [node name="ColorRect" type="ColorRect" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 color = Color(0.219608, 0.372549, 0.380392, 1) [node name="Player" parent="." instance=ExtResource( 3 )] [node name="MobTimer" type="Timer" parent="."] wait_time = 0.5 [node name="ScoreTimer" type="Timer" parent="."] [node name="StartTimer" type="Timer" parent="."] wait_time = 2.0 one_shot = true [node name="StartPosition" type="Position2D" parent="."] position = Vector2(240, 450) [node name="MobPath" type="Path2D" parent="."] curve = SubResource( 1 ) [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"] [node name="HUD" parent="." instance=ExtResource( 4 )] [node name="Music" type="AudioStreamPlayer" parent="."] stream = ExtResource( 5 ) [node name="DeathSound" type="AudioStreamPlayer" parent="."] stream = ExtResource( 6 ) [connection signal="Hit" from="Player" to="." method="GameOver"] [connection signal="timeout" from="MobTimer" to="." method="OnMobTimerTimeout"] [connection signal="timeout" from="ScoreTimer" to="." method="OnScoreTimerTimeout"] [connection signal="timeout" from="StartTimer" to="." method="OnStartTimerTimeout"] [connection signal="StartGame" from="HUD" to="." method="NewGame"]