JavaScript is required. Please enable it to continue.
Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $totalEnergy to 130>> <<set $energy to 100>> <<set $energyLoss to 0>> <<set $totalHunger to 100>> <<set $hunger to 100>> <<set $hungerLoss to 0>> <<set $money to 100>>
<span class="clocker"><span id="month-year-day"><<date2>></span> <span class="clocker-hours"><span id="hours-min"><<time24hr>></span><<button "">><<nobr>> <<include "Clock">> <</nobr>><</button>> </span></span> <<statusbar "energi-bar" "$totalEnergy" "$energy" "$energyLoss">> <<statusbar "hunger-bar" "$totalHunger" "$hunger" "$hungerLoss">>
/* Date & Time Widget Setup */ <<set window.GameDays to [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]; window.GameMonths to [ "January", "February", "March", "April", "Mey", "June", "July", "August", "September", "October", "November", "December" ]; /* params: year , month(0-based) , day , hour(24H) , minute [, second ] */ $gameDate to new Date(2015, 11, 28, 7, 0); >> /* Date & Time Advancement Widget Definitions */ /* Adds the specified number of minutes. */ <<widget "addmins">> <<run $gameDate.setMinutes($gameDate.getMinutes() + $args[0])>> <</widget>> /* Adds the specified number of hours. */ <<widget "addhours">> <<run $gameDate.setHours($gameDate.getHours() + $args[0])>> <</widget>> /* Adds the specified number of days. */ <<widget "adddays">> <<run $gameDate.setHours($gameDate.getHours() + $args[0] * 24)>> <</widget>> /* Date & Time Printing Widget Definitions */ /* Prints the current date ("{weekday} {month} {day}, {year}"). */ <<widget "date2">> <<print String.format("{0} {1}, {2}<br>{3}", $gameDate.getDate(), GameMonths[$gameDate.getMonth()], $gameDate.getFullYear(), GameDays[$gameDate.getDay()] )>>\ <</widget>> /* Prints the current time (24H). */ <<widget "time24hr">> <<if $gameDate.getHours() lt 10>>0<</if>><<print $gameDate.getHours()>> : <<if $gameDate.getMinutes() lt 10>>0<</if>><<print $gameDate.getMinutes()>> <<if $gameDate.getHours() gte 15>> <<addclass "body" "afternoon">> <<if $gameDate.getHours() gte 18>> <<removeclass "body" "afternoon">> <<addclass "body" "night">> <</if>> <<elseif $gameDate.getHours() lte 5>> <<addclass "body" "night">> <<else>> <<removeclass "body" "night">> <</if>> <</widget>>
<<set $gameDate.setHours($gameDate.getHours() + 1)>> /% generate energy and hunger stats %/ <<if passage() is "Sleep">> <<set $energyLoss to -8>> <<set $hungerLoss to 3>> <<else>> <<set $energyLoss to 8>> <<set $hungerLoss to 8>> <</if>> <<include "StatsCondition">> /% end of generate energy and hunger stats %/ <<replace "#month-year-day">> <<print String.format("{0} {1}, {2}<br>{3}", $gameDate.getDate(), GameMonths[$gameDate.getMonth()], $gameDate.getFullYear(), GameDays[$gameDate.getDay()] )>> <</replace>> <<replace "#hours-min">> <<if $gameDate.getHours() lt 10>>0<</if>><<print $gameDate.getHours()>> : <<if $gameDate.getMinutes() lt 10>>0<</if>><<print $gameDate.getMinutes()>> <</replace>> <<if $gameDate.getHours() gte 15>> <<addclass "body" "afternoon">> <<if $gameDate.getHours() gte 18>> <<removeclass "body" "afternoon">> <<addclass "body" "night">> <</if>> <<elseif $gameDate.getHours() lte 5>> <<addclass "body" "night">> <<else>> <<removeclass "body" "night">> <</if>>
<<set $wakeup = 0>> <<repeat 1s>> <<include "Clock">> <<if $wakeup eq 1 or $energy gte $totalEnergy>> <<stop>> <</if>> <</repeat>> <span class="block-menu">[[Wake|Apartment][$wakeup to 1]]</span>
[[Go sleep|Sleep]] [[Go to work|Office]]
/% buggy and still working on the hunger side %/ <<if $energy > 10 >> <<goto `passage()`>> <<else>> <<goto "Sleepy">> <</if>>
im so sleepy, cant go anywhere. better <<if previous() isnot "Apartment">>go home and <</if>>go to sleep <span class="block-menu">[[Sleep]]</span>
/% This passage is kind of office like, player do works here with automate clock run from 8:00 am to 16:00 pm, and in future there'll be some story on it. for beta version, it will give player $100 per day %/ <<addclass "body" "hide-exit">> <<repeat 1s>> <<if $gameDate.getHours() lt 16>> <<include "Clock">> <<else>> <<set $money += 100>> your money increased by $100 and total money you have is $<<= $money>> <<removeclass "body" "hide-exit">> <<set $working = 0>> <<stop>> <</if>> <</repeat>> <br> <span class="block-menu exit-path"> [[Go gome|Apartment]] </span>