small racing game im working on
Diffstat (limited to 'classes/resources/track.gd')
| -rw-r--r-- | classes/resources/track.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/resources/track.gd b/classes/resources/track.gd index cf41dbb..8464149 100644 --- a/classes/resources/track.gd +++ b/classes/resources/track.gd @@ -1,6 +1,10 @@ extends Resource class_name TrackResource @export_group("Sun position") + +func night() -> bool: + return sun_x < -180 || sun_x > -7 + ## Sun x rotation @export_range(-360, 360) var sun_x := -90 ## Sun y rotation ( its a game, the sun rotates around us ) |