|
|
|
[gd_scene load_steps=6 format=3 uid="uid://dlypem0porccr"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/game_world.gd" id="1_c2sx0"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Cupcake Spawn Timer.gd" id="2_bjylp"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dswkgkor3yejo" path="res://Scenes/Cupcakes/cupcake.tscn" id="2_fi3r2"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/PlayArea.gd" id="3_3x1i6"]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sh03e"]
|
|
|
|
size = Vector2(1943, 1102)
|
|
|
|
|
|
|
|
[node name="GameWorld" type="Node2D"]
|
|
|
|
script = ExtResource("1_c2sx0")
|
|
|
|
|
|
|
|
[node name="Location" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
[node name="Cupcake Spawn Timer" type="Timer" parent="."]
|
|
|
|
wait_time = 2.0
|
|
|
|
autostart = true
|
|
|
|
script = ExtResource("2_bjylp")
|
|
|
|
|
|
|
|
[node name="PlayArea" type="Area2D" parent="."]
|
|
|
|
script = ExtResource("3_3x1i6")
|
|
|
|
|
|
|
|
[node name="Cupcake" parent="PlayArea" instance=ExtResource("2_fi3r2")]
|
|
|
|
position = Vector2(83, -168)
|
|
|
|
collision_layer = 1
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayArea"]
|
|
|
|
position = Vector2(961.5, 541)
|
|
|
|
shape = SubResource("RectangleShape2D_sh03e")
|
|
|
|
|
|
|
|
[connection signal="timeout" from="Cupcake Spawn Timer" to="." method="_on_timeout"]
|
|
|
|
[connection signal="area_exited" from="PlayArea" to="." method="_on_play_area_area_exited"]
|
|
|
|
[connection signal="area_exited" from="PlayArea" to="PlayArea" method="_on_area_exited"]
|
|
|
|
[connection signal="body_exited" from="PlayArea" to="." method="_on_play_area_body_exited"]
|