mirror of
https://github.com/mx42/my-gd-game.git
synced 2026-01-14 13:29:52 +01:00
feat: initial commit
This commit is contained in:
81
scenes/game_over.tscn
Normal file
81
scenes/game_over.tscn
Normal file
@@ -0,0 +1,81 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dsujhlrcl3hr3"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/game_over.gd" id="1_h2fw8"]
|
||||
[ext_resource type="PackedScene" uid="uid://byrjn2ta5gsld" path="res://scenes/level.tscn" id="2_latqh"]
|
||||
[ext_resource type="Texture2D" uid="uid://p8npigebbm88" path="res://assets/gfx/ship.png" id="3_rgq6y"]
|
||||
[ext_resource type="AudioStream" uid="uid://cr5eb0te0go26" path="res://assets/sfx/ship_explosion2.wav" id="4_0i6ac"]
|
||||
|
||||
[node name="GameOver" type="Node2D"]
|
||||
script = ExtResource("1_h2fw8")
|
||||
scene = ExtResource("2_latqh")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="BG" type="ColorRect" parent="CanvasLayer"]
|
||||
offset_right = 1280.0
|
||||
offset_bottom = 1280.0
|
||||
scale = Vector2(2, 2)
|
||||
color = Color(0.0652247, 0.101439, 0.35129, 1)
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer"]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -114.5
|
||||
offset_top = -47.5
|
||||
offset_right = 114.5
|
||||
offset_bottom = 47.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 50
|
||||
|
||||
[node name="GameOver" type="Label" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "GAME OVER"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Score" type="Label" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "Score: "
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="TouchScreenButton" type="TouchScreenButton" parent="CanvasLayer/VBoxContainer/Control"]
|
||||
position = Vector2(-16, -16)
|
||||
scale = Vector2(2, 2)
|
||||
texture_normal = ExtResource("3_rgq6y")
|
||||
action = "continue"
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="CanvasLayer"]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -91.5
|
||||
offset_top = -40.0
|
||||
offset_right = 91.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Press space to continue"
|
||||
|
||||
[node name="ShipDestroyed" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("4_0i6ac")
|
||||
autoplay = true
|
||||
|
||||
[connection signal="resized" from="CanvasLayer/BG" to="." method="_on_bg_resized"]
|
||||
Reference in New Issue
Block a user