+game over
This commit is contained in:
parent
fa47248174
commit
e64963049c
|
@ -15,3 +15,5 @@ settings_volume_sound,Sound Volume,Sound Lautstärke
|
||||||
settings_language,Game Language,Spielsprache
|
settings_language,Game Language,Spielsprache
|
||||||
game_paused,Game paused,Spiel pausiert
|
game_paused,Game paused,Spiel pausiert
|
||||||
resume_game,Resume game,Weiterspielen
|
resume_game,Resume game,Weiterspielen
|
||||||
|
game_over,Show over,Show vorbei
|
||||||
|
your_score,Your score:,Deine Punkte:
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
## Script that manages saving games.
|
## Script that manages saving games.
|
||||||
class_name SaveGame extends Node
|
class_name SaveGame extends Node
|
||||||
|
|
||||||
const ENABLED = true
|
const ENABLED = false
|
||||||
const ENCRYPTION_KEY = "godotrules"
|
const ENCRYPTION_KEY = "godotrules"
|
||||||
const SAVE_GAME_TEMPLATE = "savegame.save"
|
const SAVE_GAME_TEMPLATE = "savegame.save"
|
||||||
const SAVE_GROUP_NAME = "Persist"
|
const SAVE_GROUP_NAME = "Persist"
|
||||||
|
|
|
@ -20,6 +20,54 @@ unique_name_in_owner = true
|
||||||
process_mode = 2
|
process_mode = 2
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
|
[node name="ScoreOverlay" type="CenterContainer" parent="UI"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
process_mode = 2
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer3" type="VBoxContainer" parent="UI/ScoreOverlay"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="UI/ScoreOverlay/VBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_type_variation = &"HeaderLarge"
|
||||||
|
text = "game_over"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="LabelScore" type="Label" parent="UI/ScoreOverlay/VBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_type_variation = &"HeaderLarge"
|
||||||
|
text = "your_score"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="FinalScore" type="Label" parent="UI/ScoreOverlay/VBoxContainer3"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
theme_type_variation = &"HeaderLarge"
|
||||||
|
text = "100"
|
||||||
|
horizontal_alignment = 1
|
||||||
|
|
||||||
|
[node name="MenuContainer" type="VBoxContainer" parent="UI/ScoreOverlay/VBoxContainer3"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 8
|
||||||
|
|
||||||
|
[node name="MainMenuButton" type="Button" parent="UI/ScoreOverlay/VBoxContainer3/MenuContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
custom_minimum_size = Vector2(180, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "new_game"
|
||||||
|
|
||||||
|
[node name="ExitButton" type="Button" parent="UI/ScoreOverlay/VBoxContainer3/MenuContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
text = "leave_game"
|
||||||
|
|
||||||
[node name="Crowd" parent="." instance=ExtResource("4_aeh13")]
|
[node name="Crowd" parent="." instance=ExtResource("4_aeh13")]
|
||||||
position = Vector2(0, 0)
|
position = Vector2(0, 0)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=11 format=3 uid="uid://cicyfp5xjvvu4"]
|
[gd_scene load_steps=12 format=3 uid="uid://cicyfp5xjvvu4"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bg85if5rrrdmm" path="res://sprites/room/buehne.svg" id="1_32lst"]
|
[ext_resource type="Texture2D" uid="uid://bg85if5rrrdmm" path="res://sprites/room/buehne.svg" id="1_32lst"]
|
||||||
[ext_resource type="Script" path="res://scenes/Tim.gd" id="1_g3k2b"]
|
[ext_resource type="Script" path="res://scenes/Tim.gd" id="1_g3k2b"]
|
||||||
|
@ -6,6 +6,7 @@
|
||||||
[ext_resource type="Script" path="res://scenes/Boundary.gd" id="2_8p6ir"]
|
[ext_resource type="Script" path="res://scenes/Boundary.gd" id="2_8p6ir"]
|
||||||
[ext_resource type="PackedScene" uid="uid://r1i7ln2hpwq5" path="res://scenes/joke_button.tscn" id="3_0t41i"]
|
[ext_resource type="PackedScene" uid="uid://r1i7ln2hpwq5" path="res://scenes/joke_button.tscn" id="3_0t41i"]
|
||||||
[ext_resource type="Script" path="res://scenes/DisplayStamina.gd" id="6_88orn"]
|
[ext_resource type="Script" path="res://scenes/DisplayStamina.gd" id="6_88orn"]
|
||||||
|
[ext_resource type="FontFile" uid="uid://le2vdo2626vw" path="res://fonts/Montserrat-Medium.ttf" id="6_pb3a7"]
|
||||||
[ext_resource type="Script" path="res://scenes/DisplayMood.gd" id="7_5m0td"]
|
[ext_resource type="Script" path="res://scenes/DisplayMood.gd" id="7_5m0td"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_jfw8v"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_jfw8v"]
|
||||||
|
@ -15,6 +16,7 @@ radius = 23.0217
|
||||||
size = Vector2(250, 10000)
|
size = Vector2(250, 10000)
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_aq472"]
|
[sub_resource type="LabelSettings" id="LabelSettings_aq472"]
|
||||||
|
font = ExtResource("6_pb3a7")
|
||||||
font_size = 32
|
font_size = 32
|
||||||
|
|
||||||
[node name="Stage" type="Node2D"]
|
[node name="Stage" type="Node2D"]
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue