diff --git a/resources/localization/MenuTranslations.csv b/resources/localization/MenuTranslations.csv index cd61872..a5f8910 100644 --- a/resources/localization/MenuTranslations.csv +++ b/resources/localization/MenuTranslations.csv @@ -20,6 +20,9 @@ WEAPON_SWORD,Sword,Épée WEAPON_ATTRIBUTE_DAMAGE,Damage,Dégats WEAPON_ATTRIBUTE_RANGE,Range,Portée WEAPON_ATTRIBUTE_ATTACK_SPEED,Attack Speed,Vitesse d'attaque -DEATH_TEXT,You are dead...,Vous êtes mort +DEATH_TEXT,You are dead,Vous êtes mort RESPAWN_TEXT,Respawn in...,Réapparition dans... -SECOND_TEXT,second(s),seconde(s) \ No newline at end of file +SECOND_TEXT,second(s),seconde(s) +GAME_OVER_TITLE,Game Over,Perdu ! +GAME_OVER_RETRY,Retry,Réessayer +GAME_OVER_QUIT,Quit,Quitter diff --git a/resources/localization/MenuTranslations.en.translation b/resources/localization/MenuTranslations.en.translation index 5d163e8..023c645 100644 Binary files a/resources/localization/MenuTranslations.en.translation and b/resources/localization/MenuTranslations.en.translation differ diff --git a/resources/localization/MenuTranslations.fr.translation b/resources/localization/MenuTranslations.fr.translation index 7a6e9c1..ef6a62f 100644 Binary files a/resources/localization/MenuTranslations.fr.translation and b/resources/localization/MenuTranslations.fr.translation differ diff --git a/scenes/menus/gameOver/GameOver.gd b/scenes/menus/gameOver/GameOver.gd new file mode 100644 index 0000000..3788cd7 --- /dev/null +++ b/scenes/menus/gameOver/GameOver.gd @@ -0,0 +1,7 @@ +extends Control + +func _on_retry_pressed() -> void: + print("Nothing to do here ! (for now)") + +func _on_quit_pressed() -> void: + get_tree().quit() diff --git a/scenes/menus/gameOver/GameOver.tscn b/scenes/menus/gameOver/GameOver.tscn new file mode 100644 index 0000000..590e548 --- /dev/null +++ b/scenes/menus/gameOver/GameOver.tscn @@ -0,0 +1,47 @@ +[gd_scene load_steps=2 format=3 uid="uid://bvpukupq1sg2m"] + +[ext_resource type="Script" path="res://scenes/menus/gameOver/GameOver.gd" id="1_uppha"] + +[node name="GameOver" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_uppha") + +[node name="MarginContainer" type="MarginContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"] +layout_mode = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/CenterContainer"] +layout_mode = 2 +theme_override_constants/separation = 64 + +[node name="Label" type="Label" parent="MarginContainer/CenterContainer/VBoxContainer"] +layout_mode = 2 +theme_override_font_sizes/font_size = 32 +text = "GAME_OVER_TITLE" + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/CenterContainer/VBoxContainer"] +layout_mode = 2 +theme_override_constants/separation = 12 + +[node name="Retry" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer/VBoxContainer"] +layout_mode = 2 +text = "GAME_OVER_RETRY" + +[node name="Quit" type="Button" parent="MarginContainer/CenterContainer/VBoxContainer/VBoxContainer"] +layout_mode = 2 +text = "GAME_OVER_QUIT" + +[connection signal="pressed" from="MarginContainer/CenterContainer/VBoxContainer/VBoxContainer/Retry" to="." method="_on_retry_pressed"] +[connection signal="pressed" from="MarginContainer/CenterContainer/VBoxContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"]