diff --git a/scripts/maps/tutorial.gd b/scripts/maps/tutorial.gd index c10a91a..b99da01 100644 --- a/scripts/maps/tutorial.gd +++ b/scripts/maps/tutorial.gd @@ -61,27 +61,9 @@ func _process(delta): Global.musicUpdated = true if Global.tutorialTimerCompleted: audio_stream_player.playing = false - change_time_of_day() func play_music(music): audio_stream_player.set_stream(music) add_child(audio_stream_player) audio_stream_player.play() - -var num = 1 -var day = true -var sensitivity = 0.00025 - -func change_time_of_day(): - if num <= 1 and day: - num = num - sensitivity - if num <= 0.05: - day = false - elif num >= 0 and not day: - num = num + sensitivity - if num >= 1: - day = true - environment.background_energy_multiplier = num - environment.ambient_light_sky_contribution = num - $DirectionalLight3D.light_energy = num