update save mode

This commit is contained in:
2026-06-29 15:23:44 +02:00
parent fb848a9848
commit 67a99051bd
2 changed files with 52 additions and 19 deletions

View File

@@ -48,8 +48,8 @@ func _build_material() -> void:
mat.set_shader_parameter("shape_tiling", 16.0)
mat.set_shader_parameter("shape_rotation", 0.0)
mat.set_shader_parameter("shape_scroll", Vector2.ZERO)
mat.set_shader_parameter("shape_feathering", 0.0)
mat.set_shader_parameter("shape_treshold", 1.15) # >1 = full at the end of the transation
mat.set_shader_parameter("shape_feathering", 0.05)
mat.set_shader_parameter("shape_treshold", 1.0) # >=1 -> full at the end of the transation
mat.set_shader_parameter("width", 0.5)
color_rect.material = mat
@@ -80,9 +80,15 @@ func change_scene(scene_enum: SceneConfig.SceneName) -> void:
var target_scene: PackedScene = config.scenes[scene_enum]
color_rect.mouse_filter = Control.MOUSE_FILTER_STOP
loading_screen.visible = true
await cover(transition_duration)
get_tree().change_scene_to_packed(target_scene)
await reveal(transition_duration)
loading_screen.visible = false
color_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
func quit_game() -> void:
get_tree().quit()