pretty happy with fog and cloud tweaks, still need to make bigger clouds
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user