2024-05-16 14:38:23 -04:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://bdarunpk3c2eh"]
|
2024-05-09 22:42:55 -04:00
|
|
|
|
2024-05-12 22:42:28 -04:00
|
|
|
[ext_resource type="Script" path="res://scripts/game.gd" id="1_6727i"]
|
2024-05-09 22:42:55 -04:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cbo47ftx0vcro" path="res://scenes/ship.tscn" id="1_esyqo"]
|
2024-05-12 22:42:28 -04:00
|
|
|
[ext_resource type="FontFile" uid="uid://bkcxbtx1vcj8w" path="res://assets/fonts/Color Basic.otf" id="2_gwtm0"]
|
2024-05-13 17:14:48 -04:00
|
|
|
[ext_resource type="PackedScene" uid="uid://0yktrbyp6cr3" path="res://scenes/game_over_screen.tscn" id="3_yy075"]
|
2024-05-13 20:02:52 -04:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cemhlom425afn" path="res://scenes/stars.tscn" id="4_064lo"]
|
2024-05-16 14:38:23 -04:00
|
|
|
[ext_resource type="PackedScene" uid="uid://e647ck5fxo17" path="res://scenes/invader_spawner.tscn" id="5_itvtr"]
|
2024-05-09 22:42:55 -04:00
|
|
|
|
|
|
|
[node name="Game" type="Node2D"]
|
2024-05-12 01:17:58 -04:00
|
|
|
script = ExtResource("1_6727i")
|
2024-05-09 22:42:55 -04:00
|
|
|
|
2024-05-12 22:42:28 -04:00
|
|
|
[node name="UI" type="CanvasLayer" parent="."]
|
|
|
|
|
|
|
|
[node name="Score" type="Label" parent="UI"]
|
|
|
|
offset_right = 40.0
|
|
|
|
offset_bottom = 23.0
|
|
|
|
theme_override_fonts/font = ExtResource("2_gwtm0")
|
|
|
|
theme_override_font_sizes/font_size = 32
|
|
|
|
text = "SCORE: 0"
|
|
|
|
|
|
|
|
[node name="Level" type="Label" parent="UI"]
|
|
|
|
offset_left = 908.0
|
|
|
|
offset_right = 1148.0
|
|
|
|
offset_bottom = 45.0
|
|
|
|
theme_override_fonts/font = ExtResource("2_gwtm0")
|
|
|
|
theme_override_font_sizes/font_size = 32
|
|
|
|
text = "LEVEL: 1"
|
|
|
|
horizontal_alignment = 2
|
|
|
|
|
2024-05-14 17:56:34 -04:00
|
|
|
[node name="HighScore" type="Label" parent="UI"]
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
offset_left = -96.0
|
|
|
|
offset_right = 96.0
|
|
|
|
offset_bottom = 39.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
theme_override_fonts/font = ExtResource("2_gwtm0")
|
|
|
|
theme_override_font_sizes/font_size = 18
|
|
|
|
text = "HIGH SCORE:
|
|
|
|
0"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2024-05-13 17:14:48 -04:00
|
|
|
[node name="GameOverScreen" parent="UI" instance=ExtResource("3_yy075")]
|
|
|
|
visible = false
|
|
|
|
|
2024-05-10 20:42:22 -04:00
|
|
|
[node name="Background" type="CanvasLayer" parent="."]
|
|
|
|
layer = -1
|
|
|
|
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Background"]
|
|
|
|
z_index = -1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
|
2024-05-13 20:02:52 -04:00
|
|
|
[node name="Stars" parent="Background" instance=ExtResource("4_064lo")]
|
2024-05-13 17:14:48 -04:00
|
|
|
|
2024-05-16 14:38:23 -04:00
|
|
|
[node name="InvaderSpawner" parent="." instance=ExtResource("5_itvtr")]
|
|
|
|
|
2024-05-09 22:42:55 -04:00
|
|
|
[node name="Ship" parent="." instance=ExtResource("1_esyqo")]
|
2024-05-10 20:42:22 -04:00
|
|
|
z_index = 1
|
|
|
|
position = Vector2(622, 309)
|
2024-05-12 00:47:14 -04:00
|
|
|
|
2024-05-16 14:38:23 -04:00
|
|
|
[connection signal="shot" from="InvaderSpawner" to="." method="_on_invader_spawner_shot"]
|
2024-05-12 22:42:28 -04:00
|
|
|
[connection signal="crashed" from="Ship" to="." method="game_over"]
|