feat(client): improve day/night cycle and add time indicator

Fix vertical line artifacts in nighttime overlay by using a single
rectangle for full night and a base+sweep approach for transitions.
Increase night darkness from 0.3 to 0.45 for more distinct nighttime.
Add a time indicator bar at top-center showing day/night progress
with sun/moon icons matching the EarthBound-inspired UI style.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-09 17:19:05 +00:00
parent 700dddc845
commit afbf85d7ff
3 changed files with 193 additions and 24 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export const NIGHT_HOURS = DAY_HOURS / DAY_NIGHT_RATIO; // 6 hours of night
export const TOTAL_HOURS = DAY_HOURS + NIGHT_HOURS; // 18 hours total cycle
export const SUNSET_DURATION_HOURS = 1; // game hours for sunset transition
export const SUNRISE_DURATION_HOURS = 1; // game hours for sunrise transition
export const NIGHT_DARKNESS = 0.3; // max overlay opacity (0-1)
export const NIGHT_DARKNESS = 0.45; // max overlay opacity (0-1)
// Directions (row index in spritesheet)
export const Direction = {