2024-02-17 04:04:43 +00:00
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://l4mybb2dw107"]
|
2024-02-16 10:10:00 +00:00
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cwkcf8h5rspoh" path="res://scenes/objects/player.tscn" id="1_nq1ke"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cxlgt8h33u7os" path="res://scenes/objects/tower.tscn" id="2_betjv"]
|
2024-02-16 12:35:30 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cppmks4ln28yd" path="res://scenes/objects/attacker.tscn" id="3_jg22m"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cy2xpilh8v7vx" path="res://scenes/farms/enemy_farm.tscn" id="3_ogjsq"]
|
2024-02-16 15:35:39 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://2tqfm73cc4id" path="res://scenes/manager/statistics.tscn" id="5_qd3ww"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cjam63kp5sg2o" path="res://scenes/ui/stats_overlay.tscn" id="5_rymed"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dy51uqtr2ng32" path="res://scenes/ui/finish_screen.tscn" id="6_b264x"]
|
2024-02-16 16:55:13 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://5mt7abqkbpei" path="res://scenes/ui/reward_claim_screen.tscn" id="6_t43s0"]
|
2024-02-17 04:04:43 +00:00
|
|
|
[ext_resource type="JSON" path="res://behaviours/rewards.json" id="7_yubu4"]
|
2024-02-16 12:35:30 +00:00
|
|
|
|
|
|
|
[sub_resource type="Curve2D" id="Curve2D_gwd20"]
|
|
|
|
_data = {
|
2024-02-17 04:04:43 +00:00
|
|
|
"points": PackedVector2Array(0, 0, 0, 0, -174, -153, 0, 0, 0, 0, -170, 795, 0, 0, 0, 0, 1362, 801, 0, 0, 0, 0, 1358, -153, 0, 0, 0, 0, -174, -151)
|
2024-02-16 12:35:30 +00:00
|
|
|
}
|
|
|
|
point_count = 5
|
2024-02-16 10:10:00 +00:00
|
|
|
|
|
|
|
[node name="Main" type="Node2D"]
|
|
|
|
|
2024-02-16 12:35:30 +00:00
|
|
|
[node name="EnemyFarm" parent="." node_paths=PackedStringArray("path_follow", "common_target") instance=ExtResource("3_ogjsq")]
|
|
|
|
path_follow = NodePath("../EnemySpawnPath/EnemySpawnPoint")
|
|
|
|
target = ExtResource("3_jg22m")
|
|
|
|
common_target = NodePath("../Player")
|
|
|
|
|
|
|
|
[node name="BulletFarm" type="Node2D" parent="."]
|
|
|
|
|
2024-02-16 15:35:39 +00:00
|
|
|
[node name="Player" parent="." node_paths=PackedStringArray("weapon_bullet_parent", "statistics") instance=ExtResource("1_nq1ke")]
|
2024-02-16 12:35:30 +00:00
|
|
|
weapon_bullet_parent = NodePath("../BulletFarm")
|
2024-02-16 15:35:39 +00:00
|
|
|
statistics = NodePath("../Statistics")
|
2024-02-16 10:10:00 +00:00
|
|
|
|
|
|
|
[node name="Tower" parent="." instance=ExtResource("2_betjv")]
|
2024-02-16 12:35:30 +00:00
|
|
|
|
|
|
|
[node name="EnemySpawnPath" type="Path2D" parent="."]
|
|
|
|
curve = SubResource("Curve2D_gwd20")
|
|
|
|
|
|
|
|
[node name="EnemySpawnPoint" type="PathFollow2D" parent="EnemySpawnPath"]
|
2024-02-17 04:04:43 +00:00
|
|
|
position = Vector2(-174, -153)
|
|
|
|
rotation = 1.56658
|
2024-02-16 15:35:39 +00:00
|
|
|
|
|
|
|
[node name="StatsOverlay" parent="." node_paths=PackedStringArray("stats") instance=ExtResource("5_rymed")]
|
|
|
|
stats = NodePath("../Statistics")
|
|
|
|
|
2024-02-16 16:55:13 +00:00
|
|
|
[node name="RewardClaimScreen" parent="." node_paths=PackedStringArray("tower", "player") instance=ExtResource("6_t43s0")]
|
|
|
|
visible = false
|
|
|
|
tower = NodePath("../Tower")
|
|
|
|
player = NodePath("../Player")
|
2024-02-17 04:04:43 +00:00
|
|
|
behaviour_asset = ExtResource("7_yubu4")
|
2024-02-16 16:55:13 +00:00
|
|
|
|
2024-02-16 15:35:39 +00:00
|
|
|
[node name="FinishScreen" parent="." node_paths=PackedStringArray("stats") instance=ExtResource("6_b264x")]
|
|
|
|
visible = false
|
|
|
|
stats = NodePath("../Statistics")
|
|
|
|
|
|
|
|
[node name="Statistics" parent="." instance=ExtResource("5_qd3ww")]
|
|
|
|
|
|
|
|
[connection signal="enemy_defeat" from="EnemyFarm" to="Statistics" method="_on_enemy_defeated"]
|
|
|
|
[connection signal="tower_broken" from="Tower" to="FinishScreen" method="_show"]
|
|
|
|
[connection signal="wave_finished" from="Statistics" to="EnemyFarm" method="_on_wave_finished"]
|
2024-02-17 04:15:49 +00:00
|
|
|
[connection signal="wave_finished" from="Statistics" to="Player" method="_on_wave_finished"]
|
2024-02-16 16:55:13 +00:00
|
|
|
[connection signal="wave_finished" from="Statistics" to="RewardClaimScreen" method="_show"]
|
2024-02-16 15:35:39 +00:00
|
|
|
[connection signal="wave_started" from="Statistics" to="EnemyFarm" method="_on_wave_started"]
|