# 昼夜
case (Graphics.frame_count / Graphics.frame_rate)%480
when 0...80
$game_screen.start_tone_change($day, 20) #中午
$game_variables[5] = 1
when 160...240
$game_screen.start_tone_change($dusk, 20) #傍晚
$game_variables[5] = 2
when 240...360
$game_screen.start_tone_change($night, 20) #夜间
$game_variables[5] = 3
when 360...480
$game_screen.start_tone_change($morn, 20) #早晨
$game_variables[5] = 0
end
# 昼夜
case (Graphics.frame_count / Graphics.frame_rate)%480
when 0...80
$game_screen.start_tone_change($day, 20) #中午
$game_variables[5] = 1
when 160...240
$game_screen.start_tone_change($dusk, 20) #傍晚
$game_variables[5] = 2
when 240...360
$game_screen.start_tone_change($night, 20) #夜间
$game_variables[5] = 3
when 360...480
$game_screen.start_tone_change($morn, 20) #早晨
$game_variables[5] = 0
end