Dev 0.1.0

* Ajout des logs et de la radio
This commit is contained in:
2026-07-20 00:42:47 +02:00
parent bef9f43114
commit 65f806b1f1
71 changed files with 1112 additions and 77 deletions
+1
View File
@@ -53,6 +53,7 @@ func _init(
@export var max_inventory_announced : int
@export var dialogs_done : Array[String] = [] #Chemin des dialogues terminés
@export var logs_read : Array[String] = []
@export var tutorials_done : Array[String] = []
+23 -2
View File
@@ -21,6 +21,10 @@ func get_run_progress(level : int, difficulty_setting : int) -> int:
func get_ship_dialog_path(_level : int, _difficulty_setting : int, _ship_in_space := true) -> String:
return ""
func get_logs() -> Array[Log]:
return []
#region ------------------ Run ------------------
func is_run_finished(level : int, difficulty_setting : int) -> bool:
@@ -39,7 +43,9 @@ func get_player_max_energy(difficulty_setting : int) -> int:
func get_player_max_inventory(_difficulty_setting : int) -> int:
return PlayerData.DEFAULT_INVENTORY_SIZE
func get_region_sequence_length(_difficulty_setting : int) -> int:
func get_region_sequence_length(difficulty_setting : int) -> int:
if difficulty_setting == 0:
return 6
return 8
func get_first_vending_machine_occurence(_level : int, _difficulty_setting : int) -> int:
@@ -66,7 +72,7 @@ func get_charge_number(_level : int, _difficulty_setting : int) -> int:
return 10
func is_run_point_dangerous(level : int, difficulty_setting : int) -> bool:
if is_region_sequence_infinite():
if difficulty_setting == 0:
return false
return level == get_region_sequence_length(difficulty_setting) - 2
@@ -135,3 +141,18 @@ func _on_finish():
GameInfo.game_data.incubator_used = []
GameInfo.game_data.dead_orchid_position = Vector3.ZERO
GameInfo.game_data.dead_orchid_rotation = Vector3.ZERO
class Log:
var key : String
var title : String
var text : String
func _init(
_key: String,
_title : String,
_text : String,
):
key = _key
title = _title
text = _text
@@ -15,6 +15,15 @@ func get_destination_scene() -> Scene:
"MERCURY",
"001"
)
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_DEMETER_LAUNCH_TITLE_TEXT",
"LOG_DEMETER_LAUNCH_TITLE_TEXT",
"LOG_DEMETER_LAUNCH_CONTENT_TEXT"
)
]
func get_cave_occurence(_level : int, _difficulty_setting : int) -> int:
return 2
@@ -38,7 +47,7 @@ func get_challenge_chance(_level : int, _difficulty_setting : int) -> float:
return 0.
func get_ship_dialog_path(level : int, difficulty_setting : int ,ship_in_space := true) -> String:
if ship_in_space and level == get_cave_occurence(level, difficulty_setting) - 1:
if ship_in_space and level + 1 == get_cave_occurence(level, difficulty_setting):
return CAVE_DIALOG_PATH
if ship_in_space and is_run_finished(level + 1, difficulty_setting):
return MERCURY_ARRIVAL_DIALOG_PATH
@@ -23,6 +23,21 @@ func get_destination_scene() -> Scene:
"002"
)
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_PLANET_DISCOVERY_1_TITLE_TEXT",
"LOG_PLANET_DISCOVERY_1_TITLE_TEXT",
"LOG_PLANET_DISCOVERY_1_CONTENT_TEXT"
)
]
func get_region_sequence_length(_difficulty_setting : int) -> int:
return 6
func get_objective_multiplier() -> float:
return 0.8
func get_ship_dialog_path(level : int, difficulty_setting : int, ship_in_space := true) -> String:
if level == 0:
return MERCURY_DEPARTURE_DIALOG_PATH
@@ -10,6 +10,15 @@ func get_respawn_scene() -> Scene:
true
)
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_PLANET_DISCOVERY_2_TITLE_TEXT",
"LOG_PLANET_DISCOVERY_2_TITLE_TEXT",
"LOG_PLANET_DISCOVERY_2_CONTENT_TEXT"
)
]
func get_destination_text() -> String:
return tr("BOREA_BASE")
@@ -10,6 +10,15 @@ func get_respawn_scene() -> Scene:
true
)
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_TALION_ANALYSIS_TITLE_TEXT",
"LOG_TALION_ANALYSIS_TITLE_TEXT",
"LOG_TALION_ANALYSIS_CONTENT_TEXT"
)
]
func get_destination_text() -> String:
return tr("AQUA_BASE")
@@ -24,6 +33,9 @@ func get_player_max_energy(difficulty_setting) -> int:
func get_player_max_inventory(_difficulty_setting) -> int:
return 4
func get_objective_multiplier() -> float:
return 1.2
func get_ship_dialog_path(level : int, _difficulty_setting : int, _ship_in_space := true) -> String:
if level == 5:
return AQUA_TRAVEL_PHONE_CALL_DIALOG_PATH
@@ -13,6 +13,16 @@ func get_respawn_scene() -> Scene:
func get_destination_text() -> String:
return tr("SUBTERRA_BASE")
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_THE_WAVE_TITLE_TEXT",
"LOG_THE_WAVE_TITLE_TEXT",
"LOG_THE_WAVE_CONTENT_TEXT"
)
]
func get_destination_scene() -> Scene:
return SubterraScene.new()
@@ -24,6 +34,9 @@ func get_player_max_energy(difficulty_setting : int) -> int:
func get_player_max_inventory(_difficulty_setting : int) -> int:
return 5
func get_objective_multiplier() -> float:
return 1.4
func get_ship_dialog_path(level : int, _difficulty_setting : int, _ship_in_space := true) -> String:
if level == 5:
return TRAVEL_PHONE_CALL_DIALOG_PATH
@@ -10,6 +10,16 @@ func get_respawn_scene() -> Scene:
true
)
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_THE_DEPARTURE_TITLE_TEXT",
"LOG_THE_DEPARTURE_TITLE_TEXT",
"LOG_THE_DEPARTURE_CONTENT_TEXT"
)
]
func get_destination_text() -> String:
return tr("SUBTERRA_BASE")
@@ -24,6 +34,9 @@ func get_player_max_energy(difficulty_setting : int) -> int:
func get_player_max_inventory(_difficulty_setting : int) -> int:
return 5
func get_objective_multiplier() -> float:
return 1.6
func get_ship_dialog_path(level : int, _difficulty_setting : int, _ship_in_space := true) -> String:
if level == 5:
return TRAVEL_PHONE_CALL_DIALOG_PATH
@@ -10,6 +10,15 @@ func get_respawn_scene() -> Scene:
true
)
func get_logs() -> Array[Log]:
return [
Log.new(
"LOG_ASTRA_EXPEDITION_1_TITLE_TEXT",
"LOG_ASTRA_EXPEDITION_1_TITLE_TEXT",
"LOG_ASTRA_EXPEDITION_1_CONTENT_TEXT"
)
]
func get_destination_text() -> String:
return tr("ESTIA_BASE")
@@ -24,6 +33,9 @@ func get_player_max_energy(difficulty_setting : int) -> int:
func get_player_max_inventory(_difficulty_setting : int) -> int:
return 6
func get_objective_multiplier() -> float:
return 2.
func get_ship_dialog_path(level : int, _difficulty_setting : int, _ship_in_space := true) -> String:
if level == 4:
return TRAVEL_PHONE_CALL_DIALOG_PATH