changement du scene manager, amélioration du cockpit et autres

* refonte du scene manager
* refonte du audio manager
* premier rework des plantes
* nettoyage des dossiers/fichiers
* renommage de planète en region
* fix des run
This commit is contained in:
2026-01-23 18:06:27 +01:00
parent 62b34473b6
commit 83d462f2f4
247 changed files with 2964 additions and 3159 deletions

View File

@@ -12,6 +12,10 @@ func set_pause(p):
get_tree().paused = pause
%Settings.close_settings()
%Controls.close_controls()
if p :
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
elif SceneManager.actual_scene.mouse_captured:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
func _input(_event):
if Input.is_action_just_pressed("pause"):
@@ -20,11 +24,6 @@ func _input(_event):
func _on_resume_pressed():
pause = false
func _on_restart_pressed():
GameInfo.game_data.reset_all()
pause = false
SceneManager.change_scene(SceneManager.REGION_SELECTION_SCREEN)
func _on_quit_pressed():
get_tree().quit()