mirror of
https://codeberg.org/Melon-Bread/Comets.gd.git
synced 2024-11-24 21:18:21 -05:00
49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://bdarunpk3c2eh"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/game.gd" id="1_6727i"]
|
|
[ext_resource type="PackedScene" uid="uid://cbo47ftx0vcro" path="res://scenes/ship.tscn" id="1_esyqo"]
|
|
[ext_resource type="FontFile" uid="uid://bkcxbtx1vcj8w" path="res://assets/fonts/Color Basic.otf" id="2_gwtm0"]
|
|
[ext_resource type="PackedScene" uid="uid://6c6g7e5v3ifr" path="res://scenes/comet_spawner.tscn" id="3_gh4tl"]
|
|
|
|
[node name="Game" type="Node2D"]
|
|
script = ExtResource("1_6727i")
|
|
|
|
[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
|
|
|
|
[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)
|
|
|
|
[node name="Ship" parent="." instance=ExtResource("1_esyqo")]
|
|
z_index = 1
|
|
position = Vector2(622, 309)
|
|
|
|
[node name="CometSpawner" parent="." instance=ExtResource("3_gh4tl")]
|
|
|
|
[connection signal="crashed" from="Ship" to="." method="game_over"]
|
|
[connection signal="comet_shot" from="CometSpawner" to="." method="increase_score"]
|