Dev 0.1
* Ajout des modes de jeu * Dev de subterra et estia * Ajout de tous les dialogues et traduction * Ajout d'un splashscreen
This commit is contained in:
@@ -12,12 +12,15 @@ var next_mouse_pos : Vector2
|
||||
|
||||
var planet_spin_ach_sended = false
|
||||
|
||||
@onready var difficulty_choice : DifficultyChoice = %DifficultyChoice
|
||||
|
||||
func _ready():
|
||||
%Version.text = ProjectSettings.get_setting("application/config/version")
|
||||
%Start.text = tr("CONTINUE") if GameInfo.story_game_data else tr("START")
|
||||
%StartInfinite.visible = GameInfo.has_unlocked_infinite_mode()
|
||||
%StartInfinite.text = tr("INFINITE_MODE")
|
||||
%Restart.visible = GameInfo.game_data != null
|
||||
difficulty_choice.hide()
|
||||
%Settings.close_settings()
|
||||
%Controls.close_controls()
|
||||
if not GameInfo.game_data:
|
||||
@@ -36,7 +39,10 @@ func _on_start_pressed():
|
||||
else :
|
||||
SceneManager.change_to_scene(CockpitScene.new())
|
||||
else:
|
||||
difficulty_choice.appear()
|
||||
await difficulty_choice.mode_chosen
|
||||
GameInfo.start_game_data()
|
||||
await difficulty_choice.disappear()
|
||||
SceneManager.change_to_scene(IntroScene.new())
|
||||
|
||||
func decontaminate_3D_planet(game_data):
|
||||
@@ -76,8 +82,14 @@ func _process(delta):
|
||||
|
||||
|
||||
func _on_restart_button_down():
|
||||
%Restart.text = "ARE_YOU_SURE_DELETE_CURRENT_SAVE"
|
||||
await get_tree().create_timer(0.1).timeout
|
||||
await %Restart.pressed
|
||||
GameInfo.game_mode_choosen = GameData.Mode.STORY
|
||||
difficulty_choice.appear()
|
||||
await difficulty_choice.mode_chosen
|
||||
GameInfo.start_game_data()
|
||||
await difficulty_choice.disappear()
|
||||
SceneManager.change_to_scene(IntroScene.new())
|
||||
|
||||
func _on_settings_button_down():
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dbv5hm7lyi1f6" path="res://common/icons/infinity.svg" id="12_igvpv"]
|
||||
[ext_resource type="PackedScene" uid="uid://g6lbgg1fhc25" path="res://gui/menu/settings/settings.tscn" id="18_lwj2x"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4qe1dwwsk87t" path="res://gui/menu/controls/controls.tscn" id="19_rf16a"]
|
||||
[ext_resource type="PackedScene" uid="uid://4hk0f6n8hyuh" path="res://gui/menu/difficulty_choice/difficulty_choice.tscn" id="20_rf16a"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_6yuhi"]
|
||||
viewport_path = NodePath("SubViewport")
|
||||
@@ -69,7 +70,7 @@ shader = ExtResource("8_pjo5j")
|
||||
shader_parameter/strength = 5.00000023424012
|
||||
shader_parameter/mix_percentage = 0.3
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_lwj2x"]
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_rf16a"]
|
||||
frequency = 1.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_gn4uv"]
|
||||
@@ -537,7 +538,7 @@ size = Vector2i(1980, 1080)
|
||||
|
||||
[node name="Planet3d" parent="SubViewport" unique_id=926789923 instance=ExtResource("5_7a1qq")]
|
||||
unique_name_in_owner = true
|
||||
noise = SubResource("FastNoiseLite_lwj2x")
|
||||
noise = SubResource("FastNoiseLite_rf16a")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="SubViewport" unique_id=806252928]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.369979, 0, 64.323425)
|
||||
@@ -578,6 +579,9 @@ grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.0627451, 0.05882353, 0.16862746, 1)
|
||||
|
||||
[node name="DifficultyChoice" parent="." unique_id=443336436 instance=ExtResource("20_rf16a")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/GridContainer/VBoxContainer/VBoxContainer/Start" to="." method="_on_start_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/GridContainer/VBoxContainer/VBoxContainer/StartInfinite" to="." method="_on_start_infinite_pressed"]
|
||||
[connection signal="button_down" from="MarginContainer/GridContainer/VBoxContainer/VBoxContainer/Settings" to="." method="_on_settings_button_down"]
|
||||
|
||||
Reference in New Issue
Block a user