pretty happy with fog and cloud tweaks, still need to make bigger clouds

This commit is contained in:
derek
2025-04-01 11:43:48 -05:00
parent 8999a68854
commit ca5cfba827
8 changed files with 120 additions and 95 deletions

View File

@@ -7,7 +7,6 @@ func _ready() -> void:
spawn_clouds()
func spawn_clouds():
print("SPAWNING CLOUDS")
while number_of_clouds >= 0:
number_of_clouds -= 1
@@ -19,4 +18,3 @@ func spawn_clouds():
var cloud = cloud.instantiate()
add_child(cloud)
cloud.global_position = self.global_position + spawn_pos
print("CLOUD POS : ",spawn_pos)

View File

@@ -31,10 +31,11 @@ func sun_angle_from_time():
var angle : float = deg_to_rad((current_time/24.0) * 360.0 + 90.0)
var energy = sun_energy_over_time.sample(current_time)
print("current time: ", current_time)
print("Sun angle : ",rad_to_deg(angle))
return {"angle" : angle, "energy" : energy}
func _on_property_list_changed() -> void:
change_sun()
func _on_timer_timeout() -> void:
change_sun()