61 lines
2.7 KiB
Text
61 lines
2.7 KiB
Text
[gd_scene load_steps=10 format=3 uid="uid://cxo6bq26huau7"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cmaovvr15b3qk" path="res://player/player.tscn" id="2_1bvp3"]
|
|
[ext_resource type="Script" uid="uid://vgxh2xdevat7" path="res://world/earth.gd" id="2_lquwl"]
|
|
[ext_resource type="PackedScene" uid="uid://jjoyj1ldafkf" path="res://world/earth.tscn" id="3_lquwl"]
|
|
[ext_resource type="Script" uid="uid://colvx6wq0e8n7" path="res://world/building_generator.gd" id="4_1bvp3"]
|
|
[ext_resource type="PackedScene" uid="uid://cjsrtswk4vgf2" path="res://healthbar/healthbar.tscn" id="6_7mycd"]
|
|
[ext_resource type="PackedScene" uid="uid://dpdn2php3ydsv" path="res://death_screen/death_screen.tscn" id="7_5vw27"]
|
|
[ext_resource type="PackedScene" uid="uid://4l3elvxpghw8" path="res://platform.tscn" id="7_272bh"]
|
|
[ext_resource type="PackedScene" uid="uid://b00185vygcka1" path="res://heal_item.tscn" id="8_5vw27"]
|
|
[ext_resource type="PackedScene" uid="uid://chu67ci7sl488" path="res://enemies/ghost.tscn" id="9_kek77"]
|
|
|
|
[node name="main" type="Node2D"]
|
|
|
|
[node name="Earth" parent="." instance=ExtResource("3_lquwl")]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("2_lquwl")
|
|
|
|
[node name="Player" parent="." instance=ExtResource("2_1bvp3")]
|
|
unique_name_in_owner = true
|
|
position = Vector2(500, -3100)
|
|
scale = Vector2(3, 3)
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="Player"]
|
|
position = Vector2(0, -50)
|
|
ignore_rotation = false
|
|
|
|
[node name="Debug_Camera" type="Camera2D" parent="."]
|
|
scale = Vector2(41.02, 41.02)
|
|
zoom = Vector2(0.12, 0.12)
|
|
|
|
[node name="Building Generator" type="Node" parent="."]
|
|
script = ExtResource("4_1bvp3")
|
|
|
|
[node name="Timer" type="Timer" parent="Building Generator"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Healthbar" parent="CanvasLayer" instance=ExtResource("6_7mycd")]
|
|
offset_right = 128.0
|
|
offset_bottom = 128.0
|
|
|
|
[node name="DeathScreen" parent="CanvasLayer" instance=ExtResource("7_5vw27")]
|
|
visible = false
|
|
|
|
[node name="Platform" parent="." instance=ExtResource("7_272bh")]
|
|
position = Vector2(900, -3000)
|
|
scale = Vector2(5, 3.1)
|
|
|
|
[node name="HealItem" parent="." instance=ExtResource("8_5vw27")]
|
|
position = Vector2(0, -3150)
|
|
|
|
[node name="Ghost" parent="." instance=ExtResource("9_kek77")]
|
|
position = Vector2(0, -3000)
|
|
|
|
[connection signal="health_changed" from="Player" to="CanvasLayer/Healthbar" method="_on_player_health_changed"]
|
|
[connection signal="player_died" from="Player" to="CanvasLayer/DeathScreen" method="_on_player_player_died"]
|
|
[connection signal="timeout" from="Building Generator/Timer" to="Building Generator" method="_on_timer_timeout"]
|
|
[connection signal="visibility_changed" from="CanvasLayer/DeathScreen" to="Player" method="_on_death_screen_visibility_changed"]
|