From 0a76f14556d8a5b04608147298b0cfcabb496d47 Mon Sep 17 00:00:00 2001 From: Techwizz Date: Tue, 11 Jul 2023 22:39:31 -0600 Subject: [PATCH] Removed day-night cycle in tutorial --- scripts/maps/tutorial.gd | 18 ------------------ 1 file changed, 18 deletions(-) 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