Ajout de la cinématique de début et refonte du système audio
Et toujours un peu de correction de bug par ci par là
This commit is contained in:
@@ -13,7 +13,7 @@ func win(region : Region):
|
||||
func _on_restart_pressed():
|
||||
GameInfo.game_data.reset_all()
|
||||
get_tree().paused = false
|
||||
SceneManager.change_scene("REGION_SELECTION")
|
||||
SceneManager.change_to_scene_id("REGION_SELECTION")
|
||||
|
||||
func _on_quit_pressed():
|
||||
get_tree().quit()
|
||||
|
||||
@@ -17,7 +17,7 @@ func set_pause(p):
|
||||
%Controls.close_controls()
|
||||
if p :
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
elif GameInfo.game_data.actual_scene.mouse_captured:
|
||||
elif SceneManager.actual_scene.mouse_captured:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
|
||||
if not p:
|
||||
|
||||
@@ -72,7 +72,7 @@ func _process(delta):
|
||||
|
||||
can_use_item = could_use_item and have_energy_to_use_item
|
||||
|
||||
if current_selected_item and GameInfo.game_data.actual_scene.scene_id == "REGION":
|
||||
if current_selected_item and SceneManager.actual_scene.scene_id == "REGION":
|
||||
%ActionZone.radius = current_selected_item.usage_zone_radius
|
||||
%ActionZone.color = ZONE_ACTIVATED_COLOR if can_use_item else ZONE_DEACTIVATED_COLOR
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user