From 73f8e11d939ffbffbc7e7fc96673d09f28c90647 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sat, 16 Nov 2024 20:01:00 -0600 Subject: add gameover screen --- scenes/gameover.tscn | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 scenes/gameover.tscn (limited to 'scenes/gameover.tscn') diff --git a/scenes/gameover.tscn b/scenes/gameover.tscn new file mode 100644 index 0000000..229672c --- /dev/null +++ b/scenes/gameover.tscn @@ -0,0 +1,43 @@ +[gd_scene load_steps=6 format=3 uid="uid://be813saajvxxs"] + +[ext_resource type="Texture2D" uid="uid://dobiydav6k32e" path="res://UI/GameOverScreen.png" id="1_60m3n"] +[ext_resource type="Script" path="res://scenes/gameover.gd" id="1_clwwq"] +[ext_resource type="Texture2D" uid="uid://dje61ck7cl66a" path="res://UI/minimizebuttonpressed.png" id="2_j8fs8"] +[ext_resource type="Texture2D" uid="uid://brlgi3g1hy155" path="res://UI/xbuttonpressed.png" id="2_wb6l8"] +[ext_resource type="Theme" uid="uid://ve18rbkeiwti" path="res://UI/text.tres" id="4_kotik"] + +[node name="Node2D" type="Node2D"] +script = ExtResource("1_clwwq") + +[node name="Sprite2D" type="Sprite2D" parent="."] +position = Vector2(640, 359) +scale = Vector2(0.666, 0.666) +texture = ExtResource("1_60m3n") + +[node name="Close" type="TextureButton" parent="."] +offset_left = 1241.0 +offset_top = 11.0 +offset_right = 1281.0 +offset_bottom = 51.0 +scale = Vector2(0.65, 0.65) +texture_pressed = ExtResource("2_wb6l8") + +[node name="Minimize" type="TextureButton" parent="."] +offset_left = 1213.0 +offset_top = 11.0 +offset_right = 1253.0 +offset_bottom = 51.0 +scale = Vector2(0.66, 0.66) +texture_pressed = ExtResource("2_j8fs8") + +[node name="Label" type="Label" parent="."] +offset_left = 32.0 +offset_top = 625.0 +offset_right = 332.0 +offset_bottom = 690.0 +theme = ExtResource("4_kotik") +text = "You made $ +You lost $" + +[connection signal="button_up" from="Close" to="." method="_on_close_button_up"] +[connection signal="button_up" from="Minimize" to="." method="_on_minimize_button_up"] -- cgit v1.2.3