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
+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