- Up to date.
- New documentation auto-generated with GDScriptify.
NOTE: This release contain breaking changes!
- Moved the time-specific code into a Time singleton.
- Add a debug overlay that shows:
- A slider to change the time manually.
- A checkbox to freeze/unfreeze the time.
- A checkbox to show/hide the moon light.
- The current time.
- The current date.
- The current period.
- The FPS.
- The moon light can be static or moving.
DayNightCycle
is just tweening the cycles.- The
delay
variable ofDayNightCycle
must be set in in-game seconds. MoonLight
must be sync with aDayNightCycle
.
- New parameter:
on
. Enables/disables the node. - New function
obj_exists()
to check if an object has been deleted. - Added a
ColorRect
as background to appreciate the cycles and the Moon better.
- The Moon wasn't moving properly.
- Check if
Global.Moon
exists instead of commenting the code that changes the Moon's state.
- New exported variables:
move
. Enables/disables the Moon movement.
- New
light.png
. state_night_start_hour
from18
to19
inDayNightCycle.gd
.
Moon.tscn
andMoon.gd
.- Better documentation explaining how to use the new Moon.
- New exported variables so they can be used right from the Inspector:
- Day:
day_duration
andday_start_number
. - Colors:
color_dawn
,color_day
,color_dusk
andcolor_night
. - Cycle states:
state_dawn_start_hour
,state_day_start_hour
,state_dusk_start_hour
,state_night_start_hour
andstate_transition_duration
. - Debug mode:
debug_mode
.
- Day:
enum
cycle states now has a name:cycle_state
.- More readable debug outputs.
- Use exclusive comparison operator for end of cycle:
<=
for<
. Thanks to Terkwood.
- Released 1.0.0