<<set $gamebg = "start.jpg">>
<span class="debug"><<button "beach">><<set $peek to 1>><<set $hour to 6>><<set $help to 1>><<set $days to 1>><<set $story to 27>><<set $dialogue to 0>><<set $pos to 27>><<set $dream to 3>><<goto "beachmiddle">><</button>>\
<<button "test2">><<goto "test">><</button>></span>
<<text>>Important!! Please fill out because it is important in the game!
<<textbox "$playername1" "Max">>
<<textbox "$playerlastname" "Johnson">>
<label class="checkbox"><<checkbox "$ntr" 0 1 autocheck>> NTR/NTS</label> It's not here yet, but it will be someday.
<<checkbox "$playerPortret" "player1" "player0" autocheck>> Replace player portrait.
Portret: <img src="nasty_castaway/portraits/player1.jpg" style="width:80px;">Replacement: <img src="nasty_castaway/portraits/player.jpg" style="width:80px;"><</text>>\
<<button "Start">><<goto "wake">><</button>>
<<silent>>
<label class="checkbox"><<checkbox "$incest" 0 1 autocheck>> Incest</label><label class="checkbox"><<checkbox "$rape" 0 1 autocheck>>Rape</label>
<<endsilent>><<silently>>
<<if $hour >=21 or $hour <=6>><<if $pos ==27 or $pos ==28>><<set $pos to 26>><</if>><<else>><<if $pos ==26>><<set $pos to 27>><</if>><</if>><<if $story ==27 and $fbanana >=1>><<set $story to 28>><</if>>
<<set $currentpassage to "beachmiddle">><<if $hour >=18>><<set $gamebg = "beachmiddle_night1.jpg">><<else>><<set $gamebg = "beachmiddle.jpg">><</if>>
<<set $bgdark = $hour <= 3 ? 0.8 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.8 >>
<<endsilently>>\
<div style="position:relative; width:800px; height:50px;"><<if $story >=11>><h2>Beach middle</h2><</if>>
<<if $story == 11>><<think>>You pass the familiar spit of land where you first woke up, the middle beach, and keep moving left along the curving shoreline. The sand feels warmer now under your bare feet as the sun lowers, but your eyes stay fixed ahead, scanning for anything different.<</think>><<set $story to 12>><</if>>\
<<if $story >=11>><<if $story !=20 and $story !=25 and $story !=26>><<button "Beach left">><<set $hour ++>><<if $story ==12>><<goto "wake">><<else>><<goto "beachleft">><</if>><</button>><</if>><</if>><<if $story >=23>><<if $story !=23 and $story !=25 and $story !=26>><<button "Jungle">><<set $hour ++>><<goto "jungle">><</button>><</if>><</if>><<if $story !=12 and $story !=20 and $story !=23 and $story !=26>><<button "Beach right">><<set $hour ++>><<goto "beachright">><</button>><</if>><<if $story>=28>><<text>>End of build! :(<</text>><</if>>\
<<if $pos ==1>>
<<elseif $pos ==26>><<if $lit ==1>><img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; bottom:-77vh; left:22%; width:25vh; transform: rotateY(30deg);"><<link '<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg);">' "tent">><</link>><<link '<img src="nasty_castaway/silhouettes/campfire_lit.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg);">' "campfire">><</link>><<else>><img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; bottom:-77vh; left:22%; width:25vh; transform: rotateY(30deg); z-index: -3;"><<link '<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;">' "tent">><</link>><<link '<img src="nasty_castaway/silhouettes/campfire.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg); z-index: -3;">' "campfire">><</link>><</if>>
<<elseif $pos ==27>><<if $lit ==1>><<link '<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg);">' "tent">><</link>><<link '<img src="nasty_castaway/silhouettes/campfire_lit.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg);">' "campfire">><</link>><<link '<img src="nasty_castaway/silhouettes/g_sit2.png" style="position:absolute; bottom:-77vh; left:53%; width:25vh; transform: rotateY(0deg);">' "dialogue1">><</link>><<else>><<link '<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;">' "tent">><</link>><<link '<img src="nasty_castaway/silhouettes/campfire.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg); z-index: -3;">' "campfire">><</link>><<link '<img src="nasty_castaway/silhouettes/g_sit2.png" style="position:absolute; bottom:-77vh; left:53%; width:25vh; transform: rotateY(0deg); z-index: -2;">' "dialogue1">><</link>><</if>>
<<elseif $pos ==28>><<if $lit ==1>><<link '<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg);">' "tent">><</link>><<link '<img src="nasty_castaway/silhouettes/campfire_lit.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg);">' "campfire">><</link>><<link '<img src="nasty_castaway/silhouettes/g1.png" style="position:absolute; bottom:-77vh; left:50%; width:20vh; transform: rotateY(0deg);">' "dialogue1">><</link>><<else>><<link '<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;">' "tent">><</link>><<link '<img src="nasty_castaway/silhouettes/campfire.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg); z-index: -3;">' "campfire">><</link>><<link '<img src="nasty_castaway/silhouettes/g1.png" style="position:absolute; bottom:-77vh; left:50%; width:20vh; transform: rotateY(0deg); z-index: -2;">' "dialogue1">><</link>><</if>>
<<elseif $pos ==29>>
<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;"><<link '<img src="nasty_castaway/silhouettes/g1.png" style="position:absolute; bottom:-77vh; left:50%; width:20vh; transform: rotateY(0deg); z-index: -2;">' "dialogue1">><</link>>
<<elseif $pos ==30>>
<<link '<img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:65vh; left:8%; width:600px; transform: rotateY(0deg); cursor:pointer;">' "wake">><</link>>
<<link '<img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:60vh; left:20%; width:300px; transform: rotateY(0deg); cursor:pointer;">' "wake">><</link>>
<</if>>
<<silently>>
<<endsilently>>\
</div>
<<silently>>
<<set $currentpassage to "jungledeep">><<set $gamebg = "jungle.jpg">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<endsilently>>\
<h2>Jungle deep</h2>
<<button "Jungle">><<goto "jungle">><</button>><<silently>><<set _passage to passage()>>
<<endsilently>>\
Crated by: <a style="color:white;" href="https://www.patreon.com/cw/Mypornsix?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink">mypornsix</a>
<b>v0.1</b>
<<if $showtime == 1>><<set $weekday to ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"][$day % 7]>>\
<<print $weekday>> <<if $hour <10>>0<</if>>$hour:<<if $minute <10>>0<</if>>$minute
Day:$days<</if>>\
<<if $showtime == 0>>You assume it $time<</if>>
<<if $calories <=200>><b style="color:red;">Satiety: $satiety</b><<else>>Satiety: $satiety<</if>>
<<if $milliliters <=200>><b style="color:red;">Thirst: $thirst</b><<else>>Thirst: $thirst<</if>>
<<if _passage == "inventory" >><<button "Go back ">><<goto $currentpassage>><</button>><<else>><<if $story >=26>><<button "Inventory ">><<goto "inventory">><</button>><</if>><</if>>
<<if $help >=1>><<button "Help">><<run Dialog.setup("Help")>> <<run Dialog.wiki(Story.get("help").processText())>><<run Dialog.open()>><</button>><</if>>
<<if $hour >=21>>You feel very sleepy.<</if>>
<span class="debug"><<button "Variables">><<run Dialog.setup("variables")>><<run Dialog.wiki(Story.get("variables").processText())>><<run Dialog.open()>><</button>>
<<print passage()>>
story:$story dialogue:$dialogue
</span>
<<set $gamebg to "beach.jpg">>
<<set $playername to "You">>
<<set $playerPortret to "player">>
<<set $girlname to "???">>
<<set $girlPortret to "girl_sleep">>
<<set $goddesPortret to "Goddess">>
<<set $top to 50>><<set $left to 50>><<set $width to 290>><<set $rot to 0>>
<<set $pose to 1>>
<<set $currentpassage to "test">>
<<set $dialogue to 1>>
<<set $story to 1>>
<<set $showtime to 0>>
<<set $peek to 0>>
<<set $fcoconuts to 0>><<set $fcoconutse to 0>><<set $fcoconutss to 0>><<set $fbanana to 0>><<set $fcoconuts_w_water to 0>><<set $fcoconuts_w_waterb to 0>>
<<set $lit to 0>><<set $lit1 to 0>><<set $sleep to 0>>
<<set $elapsedHours = 0>><<set $calories to 2000>><<set $milliliters to 1500>>
<<set $bgdark to 0>>
<<set $hour to 16>><<set $hourLast to 16>><<set $minute to 0>><<set $weekday to 1>><<set $day to 4>><<set $days to 0>>
<<set $ntr to 1>><<set $incest to 1>><<set $rape to 1>>
<<silently>>
<<set $currentpassage to "jungle">><<set $gamebg = "jungle.jpg">>>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<endsilently>>\
<h2>Jungle</h2>
<<button "Deep jungle">><<goto "jungledeep">><</button>><<if $story >=26>><<button "Waterfall 💧">><<goto "waterfall">><</button>><</if>>
<<button "Beach middle">><<goto "beachmiddle">><</button>><<if $hour >=7 and $hour <=17>><<button "Look for bananas🍌">><<set $hour to $hour+random(1, 2)>><<if $story ==27>><<set $rcoconuts to 1>><<else>><<set $rcoconuts to random(1, 5)>><</if>><<goto "banana">><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>><<silently>>
<<set $bgdark =
$hour <= 3 ? 0.9 :
$hour == 4 ? 0.7 :
$hour == 5 ? 0.5 :
$hour == 6 ? 0.3 :
$hour <= 17 ? 0.0 :
$hour == 18 ? 0.3 :
$hour == 19 ? 0.5 :
$hour == 20 ? 0.7 : 0.9 >>
<<endsilently>>\
<<if $story ==23>><<girl1>>Left beach. Have you managed to forget?<</girl1>>
<<elseif $story ==25>><<girl1>>Right beach and coconuts.<</girl1>>
<<elseif $story ==26>><<if $fcoconuts >=1>><<girl1>>You found some coconuts, good. Well now it's time to sleep.<</girl1>><<else>><<set $girlPortret to "girl_frown">><<girl1>>No coconuts? Well, bravo, apparently hunger is not a problem for you. It's time to sleep<</girl1>><</if>><<set $girlPortret to "girl_happy">>
<<else>>\
<<girl1>>End of build! :(<</girl1>>
<</if>>\
<<button "Get back">><<goto $currentpassage>><</button>><<widget "dbox" container>>\
<<set _name to $args[0]>>\
<div class="dialogue-box db1"> <div class="portrait">\
<img @src="'nasty_castaway/portraits/' + _name + '.jpg'" @data-name="_name" class="portrait-thumb"></div> <div class="dialogue-content">\
<strong><<= _name >>:</strong><br>_contents </div></div>\
<</widget>>\
<<widget "player" container>>\
<div class="dialogue-box player"> <div class="portrait">\
<img @src="'nasty_castaway/portraits/' + $playerPortret + '.jpg'" @data-name=" $playerPortret " class="portrait-thumb"></div> <div class="dialogue-content">\
<strong>$playername:</strong><br>_contents </div></div>\
<</widget>>\
<<widget "goddes" container>>\
<div class="dialogue-box db1"> <div class="portrait">\
<img @src="'nasty_castaway/portraits/' + $goddesPortret + '.jpg'" @data-name=" $goddesPortret " class="portrait-thumb"></div> <div class="dialogue-content">\
<strong>Goddess</strong><br>_contents </div></div>\
<</widget>>\
<<widget "girl1" container>>\
<div class="dialogue-box player"> <div class="portrait">\
<img @src="'nasty_castaway/portraits/' + $girlPortret + '.jpg'" @data-name=" $girlPortret " class="portrait-thumb"></div> <div class="dialogue-content">\
<strong>$girlname:</strong><br>_contents </div></div>\
<</widget>>\
<<widget "text" container>>\
<div class="dialogue-box text">_contents</div>\
<</widget>>\
<<widget "text2" container>>\
<div class="dialogue-box text2">_contents</div>\
<</widget>>\
<<widget "think" container>>\
<div class="dialogue-box think">_contents</div>\
<</widget>>\
<<widget "item" container>>\
<<set _name to $args[0]>>\
<div class="dialogue-box item"> <div class="item">\
<img @src="'nasty_castaway/silhouettes/' + _name + '.png'" @data-name="_name" class="item-thumb"></div> <div class="dialogue-content">\
<br>_contents </div></div>\
<</widget>>\
<<button "Map">><<goto "map">><</button>>
text1 text1 text1<<linkappend "more">> text2 text2 text2 text2 text2<</linkappend>>
<<linkreplace "Choice 1">>Long replacement text for choice 1...<</linkreplace>>
<<linkreplace "Choice 2">>Long replacement text for choice 2...<</linkreplace>>
<<linkreplace "Choice 2">>Long replacement text for choice 2...<</linkreplace>>
<div id="gbr-choice">\
<<link "Green">>
<<replace "#gbr-choice">>Green text.<</replace>>
<</link>>
<<link "Blue">>
<<replace "#gbr-choice">>Blue text.<</replace>>
<</link>>
<<link "Red">>
<<replace "#gbr-choice">>Red text.<</replace>>
<</link>>
<<link '<img src="nasty_castaway/portraits/him.jpg" style="position:absolute; top:500px; left:300px; width:80px; cursor:pointer;">' "test2">><</link>>
<div style="position:relative; width:800px; height:600px;">
$(document).on(':passageend', function () {
const bg = State.variables.gamebg;
const dark = State.variables.bgdark ?? 0;
if (bg) {
$('body').css({
'background-image': 'url("nasty_castaway/bg/' + bg + '")',
'background-size': 'cover',
'background-position': 'center center',
'background-repeat': 'no-repeat',
'background-attachment': 'fixed'
});
} else {
$('body').css('background-image', 'none');
}
document.body.style.setProperty('--bg-darkness', dark);
document.body.style.setProperty('position', 'relative');
document.body.style.setProperty('z-index', '0');
const overlay = window.getComputedStyle(document.body, '::before');
document.documentElement.style.setProperty('--bg-darkness', dark);
});
<<silently>><<if $hour >=24>><<set $day ++>><<set $days ++>><<set $hour to 0>><<if $day >=8>><<set $day to 0>><</if>><</if>>
<<if $hour >=23 and $sleep == 0>><<set $sleep to 1>><<goto "sleep">><</if>>
<<if $minute >=60>><<set $minute to $minute-60>><<set $hour ++>><</if>>
<<set $time = $hour <= 3 ? "Deep night" : $hour == 4 ? "Very early morning" : $hour == 5 ? "Very early dawn" : $hour == 6 ? "Dawn" : $hour <= 10 ? "Morning" : $hour <= 13 ? "Middle of the day" : $hour <= 17 ? "Afternoon" : $hour == 18 ? "Evening" : $hour == 19 ? "Dusk" : $hour == 20 ? "Night" : "Deep night" >>
<<set $elapsedHours to 0>><<set $deltaDays to $days - $daysLast>>
<<if $deltaDays gte 0>><<if $hour gte $hourLast>><<set $elapsedHours to ($deltaDays * 24) + ($hour - $hourLast)>><<else>><<if $deltaDays gte 1>><<set $elapsedHours to (($deltaDays - 1) * 24) + (24 - $hourLast) + $hour>><</if>><</if>><</if>>
<<if $elapsedHours gt 0>><<set $calories -= 83 * $elapsedHours>><<set $milliliters -= 62 * $elapsedHours>><</if>>
<<set $hourLast to $hour>><<set $daysLast to $days>>
<<set $satiety = $calories <= -1000 ? "Dying of Hunger" : $calories <= 0 ? "Starving" : $calories <= 200 ? "Very Hungry" : $calories <= 500 ? "Hungry" : $calories <= 1000 ? "Satisfied" : $calories <= 1500 ? "Well Fed" : "Full" >>
<<set $thirst = $milliliters <= -1000 ? "Dying from Thirst" : $milliliters <= 0 ? "Dehydrated" : $milliliters <= 300 ? "Very Thirsty" : $milliliters <= 500 ? "Thirsty" : $milliliters <= 1000 ? "Hydrated" : "Full" >><<if $calories <= -2000>><<goto "endgame">><</if>><<if $milliliters <= -1500>><<goto "endgame">><</if>><<if $calories >= 2001>><<set $calories to 2000>><</if>><<if $milliliters >= 1501>><<set $milliliters to 1500>><</if>>
<<if $hour <=12 and $lit1 ==1>><<set $lit1 to 0>><</if>>
<<if $hour >=19 and $lit1 ==0>><<set $lit to 1>><<set $lit1 to 1>><</if>>
<<endsilently>><div class="two-columns"><div>\
<<link "Down">><<set $top +=10>><<goto $currentpassage>><</link>>$top <<link "Up">><<set $top -=10>><<goto $currentpassage>><</link>>
<<link "Left">><<set $left -=10>><<goto $currentpassage>><</link>>$left <<link "Right">><<set $left +=10>><<goto $currentpassage>><</link>>
<<link "Bigger">><<set $width +=10>><<goto $currentpassage>><</link>> $width<<link "Smaller">><<set $width -=10>><<goto $currentpassage>><</link>>
<<link "rotate 0">><<set $rot to 0>><<goto $currentpassage>><</link>>| <<link "rotate 180">><<set $rot to 180>><<goto $currentpassage>><</link>>
<<link "pose+">><<set $pose +=1>><<goto $currentpassage>><</link>>$pose <<link "pose-">><<set $pose -=1>><<goto $currentpassage>><</link>>
lit:$lit dream:$dream
$currentpassage1 $currentpassage
</div><div>
$hour:$minute days:$days
story $story
bgdark $bgdark
ntr $ntr incest $incest rape $rape
rcoconuts $rcoconuts
coconuts $fcoconuts banana $fbanana
<<link "show time">><<set $showtime to 1>><<goto $currentpassage>><</link>>$pose <<link "Hide time">><<set $showtime to 0>><<goto $currentpassage>><</link>>
<<link "h+">><<set $hour ++>><<goto $currentpassage>><</link>><<link "h+10">><<set $hour +=10>><<goto $currentpassage>><</link>>
<<link "h-">><<set $hour -->><<goto $currentpassage>><</link>>
<<link "0m">><<set $minute to 0>><<goto $currentpassage>><</link>>
<<link "10m">><<set $minute +=10>><<goto $currentpassage>><</link>>
<<link "15m">><<set $minute +=15>><<goto $currentpassage>><</link>>
<<link "45m">><<set $minute +=45>><<goto $currentpassage>><</link>>
<<checkbox "$ntr" 0 1 autocheck>> NTR/NTS<<checkbox "$incest" 0 1 autocheck>> Incest<<checkbox "$rape" 0 1 autocheck>> Rape
<<checkbox "$peek" 0 1 autocheck>> peek
<<link "name">><<set $playername1 to "player">><<goto $currentpassage>><</link>>
calories $calories <<link "0">><<set $calories to 0>><<goto $currentpassage>><</link>> <<link "2000">><<set $calories to 2000 >><<goto $currentpassage>><</link>>
milliliters $milliliters <<link "0">><<set $milliliters to 0>><<goto $currentpassage>><</link>> <<link "1500">><<set $milliliters to 1500 >><<goto $currentpassage>><</link>>
satiety $satiety
thirst $thirst
<<checkbox "$playerPortret" "player" "player1" autocheck>> Player portrait.
pos $pos <<link "+">><<set $pos ++>><<goto $currentpassage>><</link>><<link "-">><<set $pos -->><<goto $currentpassage>><</link>>
</div></div>
<<button "return">><<goto $currentpassage>><</button>>
<div style="position:relative; width:800px; height:600px;">
<<link '<img src="nasty_castaway/link.png" style="position:absolute; top10%; left:0%; width:1200px; cursor:pointer;">' "test2">><</link>>
<<link '<img src="nasty_castaway/link.png" style="position:absolute; top:90%; left:0%; width:1200px; cursor:pointer;">' "test">><</link>>
</div>
<<silently>>
<<set $coconuts1 to 15>>
<<set $coconuts to 0>>
<<set $currentpassage to "beachmiddle">>
<<set $bgdark =
$hour <= 3 ? 0.9 :
$hour == 4 ? 0.7 :
$hour == 5 ? 0.5 :
$hour == 6 ? 0.3 :
$hour <= 17 ? 0.0 :
$hour == 18 ? 0.3 :
$hour == 19 ? 0.5 :
$hour == 20 ? 0.7 : 0.9 >>
<<set $gamebg = "beachright.jpg">>
<<endsilently>>\
<div style="position:relative; width:100vh; height:50vh;
background-color: rgba(34, 34, 34, 0.0);"> <h2>Beach middle</h2></div>
<div id="coconutArea" style="position:relative; width:70vh; height:15vh;
background-color: rgba(34, 34, 34, 0.0);">
<<for _i = 0; _i < $coconuts1; _i++>>
<<set _x = random(-30,75)>>
<<set _y = random(40,85)>>
<<set _coconut = random(0,5)>>
<img @src="'nasty_castaway/silhouettes/coconut' + _coconut + '.png'"
@style="'position:absolute; left:' + _x + '%; top:' + _y + '%; width:40px; cursor:pointer;'"
onclick="this.classList.add('hidden'); SugarCube.State.variables.story++;">
<</for>>
</div><<silently>>
<<set $currentpassage to "beachleft">><<set $gamebg = "beachleft.jpg">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<endsilently>>\
<h2>Beach left</h2>
<<if $story==23>><<text>>You hear the sound of flowing water in the distance.<</text>><<button "Investigate">><<set $hour ++>><<goto "river">><</button>><</if>><<if $story >= 14>><<if $story !=23>><<button "Beach middle">><<set $hour ++>><<goto "beachmiddle">><</button>><</if>><</if>><<silently>>
<<set $currentpassage to "beachright">><<set $gamebg = "beachright.jpg">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<if $story !=25>><<set $rcoconuts to random(1, 5)>><<else>><<set $rcoconuts to 1>><</if>>
<<endsilently>>\
<h2>Beach right</h2>
<<if $story == 10>><<think>>The sand just keeps going, endless and empty, nothing but more of the same unchanging view ahead. No signs of life or wreckage. Just monotony. You walk fast, pushing hard, but after what feels like forever the only thing that's changed is the sun starting to sink lower, turning the sky into something almost pretty if you weren't so confused and tired.This is getting nowhere. Better turn back to that little spit of land where you woke up - call it middle beach for now, your reference point. From there you can head the other way, left, where the shoreline curves and bends, hiding whatever's around the corner. At least there's a chance of finding something useful over there, rocks, shade, anything that isn't just more empty sand.<</think>><<set $story to 11>><</if>>
<<if $story !=25>><<button "Beach middle">><<set $hour ++>><<goto "beachmiddle">><</button>><</if>><<if $story >=22>><<if $hour >=7 and $hour <=17>><<button "Look for coconuts🥥">><<set $coconutsnumber to random(2, 10)>><<set $hour to $hour+random(1, 2)>><<if $rcoconuts ==1>><<goto "coconut1">><<elseif $rcoconuts ==2>><<goto "coconut2">><<elseif $rcoconuts ==3>><<goto "coconut3">><<else>><<goto "nococonuts">><</if>><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>><</if>>
<<silently>>
<span class="debug">
<<button "coconut1">><<goto "coconut1">><</button>>
<<button "coconut2">><<goto "coconut2">><</button>>
<<button "coconut3">><<goto "coconut3">><</button>>
<<button "no coconut">><<goto "nococonuts">><</button>>
</span><<endsilently>>\<<set $currentpassage to "wake">>\
<<if $story == 1>><<set $gamebg = "beachmiddle.jpg">><<set $bgdark to 1>><<think>>The crash of waves pulls you from the darkness, their rhythmic roar pounding in sync with the throbbing in your skull. You feel the warm grit of sand beneath you, clinging to your skin like a bad decision. Your head aches like you've been on a bender, the kind that leaves you regretting every shot, but as you grope through the fog in your mind, you can't recall a single drink, or where the hell you were pounding them.<</think>><<button"Try to open eyes">><<set $bgdark to 0.6>><<set $story to 2>><<goto $currentpassage>><</button>>\
<<elseif $story == 2>><<think>>The bright light blinds you.<</think>><<button"Open eyes">><<set $bgdark to 0>><<set $story to 3>><<goto $currentpassage>><</button>>\
<<elseif $story == 3>><<think>>You crack your eyes open, squinting against the harsh sunlight. Around you stretches a wild beach, untamed and empty, palm trees swaying lazily in the breeze, no sign of civilization, just endless blue ocean meeting golden sand.<</think>><<button"Look at yourself">><<set $bgdark to 0>><<set $story to 4>><<goto $currentpassage>><</button>>\
<<elseif $story == 4>><<think>>You're dressed in nothing but shorts and a t-shirt, the fabric damp and salty. Your feet are bare, toes digging into the sand, and you wonder where you left your shoes, but fuck, you can't even picture what they looked like.<</think>><<button"Sit">><<set $story to 5>><<goto $currentpassage>><</button>>\
<<elseif $story == 5>><<think>>You push yourself up to a sitting position, the world tilting slightly before steadying. No wreckage in sight, no twisted metal from a plane or ship, nothing to clue you in on how you ended up here. You brush the sand from your face, grains scattering like forgotten memories.<</think>><<button"Think">><<set $story to 6>><<goto $currentpassage>><</button>>\
<<elseif $story == 6>><<think>>How the fuck did you get here? Your mind races: were you on a boat, a plane? Or hell, maybe a goddamn spaceship for all you know, beamed down by aliens with a twisted sense of humor.<</think>><<button"Check yourself">><<set $story to 7>><<goto $currentpassage>><</button>>\
<<elseif $story == 7>><<think>>You check yourself over, flexing arms and legs, twisting to inspect your body. No breaks, no scratches, just this pounding headache. You probe your scalp gently, no lumps or tender spots, so probably not a blow to the head.<</think>><<button"Think about what's next.">><<set $story to 8>><<goto $currentpassage>><</button>>\
<<elseif $story == 8>><<think>>All those survival shows and movies flash through your mind: lost souls on islands, fighting to stay alive. First things first, build shelter, even before hunting for water or food. Lucky for you, you're not starving or parched yet, so you've got a bit of time. You realize that you remember TV series and movies, but you have no idea what your name is or where you saw these movies and TV series.<</think>> <<button"You look around.">><<set $story to 9>><<goto $currentpassage>><</button>>\
<<elseif $story == 9>><<think>>The beach stretches far to the right and left, and in front of you you can see a wall of thick bushes and trees forming a jungle. The beach on the right seems friendlier.<</think>>\
<<button"It's time to look around.">><<set $story to 10>><<goto "beachmiddle">><</button>>
<<elseif $story ==12>><<set $help to 1>><<set $bgdark to 0.5>><<set $gamebg = "beachleft.jpg">><<set $currentpassage to "wake">><div style="position:relative; width:800px; height:500px;"><h2>Beach left</h2>
<<think>>In the distance, something catches your eye, a splash of bright yellow against the pale sand and green palms. It's too vivid to be natural driftwood or seaweed. As you get closer, the shape resolves into a person, a woman, lying on her side in the shallows where the waves gently lap at her.She's wearing a short yellow dress, the kind that's impossible to miss even from far away, now bunched and twisted around her hips from the way she's curled up. She looks unconscious, or maybe just deeply asleep, chest rising and falling slowly.You quicken your pace without thinking. When you're close enough to make out her face, a strange flicker of recognition hits you, sharp and confusing. You know her. Or at least it feels like you should. The feeling is so strong your stomach tightens, but the moment you try to pin it down, it slips away like smoke.<</think>>
<<link '<img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:110%; left:10%; width:200px; transform: rotateY(180deg); cursor:pointer; z-index: -2">' $currentpassage >><<set $story to 13>><</link>>
</div>
<<elseif $story == 13>><div style="position:relative; width:800px; height:590px;"><h2>Beach left</h2>
<<think>>Your gaze drops. Her legs are bare and long, one knee drawn up slightly. The yellow dress has ridden high, exposing smooth skin almost to the curve of her ass. The sight pulls your attention hard, heat rising in your chest despite everything else. The familiarity fades completely under the sudden, raw pull of seeing her like this, vulnerable and unaware.You stop a few feet away, heart beating faster now. She's breathing steadily, no obvious blood or broken bones, just sand clinging to her skin and hair. The dress is soaked at the hem from the tide, but otherwise intact.You crouch slowly beside her, close enough to smell the salt on her skin and something faintly floral underneath. Whoever she is, she's here with you now, and that changes everything.<</think>><<button "Look under her skirt">><<set $peek to 1>><<set $story to 14>><<goto $currentpassage>><</button>><<button "Try to wake her up">><<set $story to 15>><<goto $currentpassage>><</button>>
<img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:90%; left:10%; width:200px; transform: rotateY(180deg); z-index: -2"></div>
<<elseif $story == 14>><<think>>Your eyes drift again to where the short dress has ridden up, bunched high on her thighs. The thought hits you fast and dirty: just a quick look, what's the harm, she's out cold anyway. Before the rational part of your brain can catch up and scream at you, your hand is already moving, fingers brushing the hem of the yellow fabric.You lift it gently, just enough, heart slamming in your chest. No panties. Nothing at all. Just smooth, perfectly shaved pussy, pink and exposed, lips slightly parted from the way her legs are angled. The sight slams into you like a wave, raw and immediate, heat flooding straight to your groin.<</think>>\
<img src="nasty_castaway/story/1.jpg" width="100%">\
<<player>>Fuck.<</player>>\
<<think>>The word slips out loud, rough and involuntary, breaking the quiet of the beach. Your hand freezes for a second, still holding the dress up, before you let it drop back down, covering her again. Blood rushes in your ears, cock already half-hard in your shorts from that single glimpse. Guilt crashes in right after the lust, hot and sharp. What the hell are you doing? She's unconscious, maybe hurt, and your first instinct was to peek like some creep. But the image is burned in now, impossible to unsee, and part of you doesn't even want to.<</think>><<button "Try to wake her up">><<set $story to 15>><<goto $currentpassage>><</button>>
<<elseif $story == 15>><div style="position:relative; width:800px; height:590px;"><h2>Beach left</h2>
<<girl1>><<linkreplace "wake her">><<link "try again">><<set $story to 16>><<goto $currentpassage>><</link>><</linkreplace>><</girl1>>
<img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:90%; left:10%; width:200px; transform: rotateY(180deg); z-index: -2">
</div>
<<elseif $story == 16>><div style="position:relative; width:800px; height:500px;"><h2>Beach left</h2>
<<think>>You shake her shoulder gently at first, then a little harder.<</think>>\
<<player>>Hey, wake up. Can you hear me?<</player>>\
<<think>>No response. Her eyelids don't even flutter. You check her pulse again, pressing two fingers to the side of her neck, steady heartbeat, warm skin. She's alive, just deeply out.The sun is sinking fast now, the sky turning deep orange and purple, and the temperature is already starting to drop. You can't leave her here on the open beach, exposed to whatever night brings, insects, tide, or worse. The spot where you woke up, middle beach, that little raised spit of land with some shade from the palms overhead, seems like the best place you've seen so far. Higher ground, a bit of natural windbreak, close enough to the tree line to maybe gather materials tomorrow. It's the only place that feels remotely defensible. I should pick it up.<</think>>\
<<link '<img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:106%; left:10%; width:200px; transform: rotateY(180deg); cursor:pointer; z-index: -2">' $currentpassage>><<set $story to 17>><</link>>
</div>
<<elseif $story == 17>><h2>Beach left</h2>
<<text>>You slide one arm under her knees, the other behind her shoulders, and lift. She's lighter than you expected, limp but warm against your chest. The yellow dress bunches again as you carry her, her head resting against your shoulder, blonde hair tickling your neck. You try not to think too much about how her bare thighs press against your arm<<if $peek ==1>> or her bare pussy that you saw a moment ago<</if>>. The walk back feels longer than it should, your bare feet sinking deeper into the cooling sand with every step. By the time you reach middle beach the last sliver of sun has disappeared below the horizon, leaving only fading purple light and the steady crash of waves.<</text>>\
<span style=" margin-left:66%;"><<button "Beach middle">><<set $story to 18>><<set $gamebg = "beachmiddle.jpg">><<set $hour ++>><<goto $currentpassage>><</button>></span>
<<elseif $story == 18>><<set $bgdark to 0.7>><div class="positionbox"><h2>Beach middle</h2>
<<think>>You lower her carefully onto the sand near the base of a palm, positioning her on her side so she doesn't choke if she vomits or anything. She stays exactly as you place her, breathing slow and even.Night is falling fast. You don't have time for anything elaborate. You hurry to the nearest palm, yank down a few large, dry fronds that have already fallen, their edges sharp against your palms. You drag them over, layering them into a rough mat so neither of you has to lie directly on the sand. You spread two more over the top like a thin blanket. It's not much, but it beats freezing on bare ground. You sit beside her, back against the palm trunk, watching her face in the dim light. The headache from earlier is duller now, but the confusion is sharper. Who is she? Why does she feel familiar one second and completely strange the next? And why the hell are you both here? Stars are starting to prick through the dark sky. Tomorrow you'll need water, food, fire, real shelter. But for now this is all you've got: a half-conscious stranger in a yellow dress and a pile of leaves on a deserted beach. You pull one of the palm leaves over both of you as best you can, the rustle loud in the sudden quiet. You tired, slowly fall asleep next to her.<</think>> <<link '<img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:150%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;">' "dream">><<set $story to 19>><<set $dream to 1>><</link>>
<<link '<img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:140%; left:20%; width:300px; transform: rotateY(0deg); cursor:pointer; z-index: -2;">' "dream">><<set $story to 19>><<set $dream to 1>><</link>></div>
<<elseif $story == 20>><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2>
<<if $peek ==1>><<button"Look under the skirt">><<set $story to 21>><<goto $currentpassage>><</button>><</if>><<button"Wake her.">><<set $story to 22>><<goto $currentpassage>><</button>><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:90%; left:20%; width:300px; transform: rotateY(0deg); z-index: -2;"></div>
<<elseif $story == 21>><<if $dialogue ==1>>\
<img src="nasty_castaway/story/1.jpg" width="100%" style="transform: rotateY(180deg);">
<<button"Try to touch">><<set $dialogue to 2>><<goto $currentpassage>><</button>><<button"Wake her.">><<set $story to 22>><<goto $currentpassage>><</button>>
<<elseif $dialogue ==2>><img src="nasty_castaway/story/2.gif" width="100%">
<<girl1>> mmmm<</girl1>>\
<<button"She wakes up">><<set $story to 22>><<goto $currentpassage>><</button>>
<</if>><<elseif $story == 22>><<if $dialogue ==1>>\
<div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2>
<<text>>The first light of dawn filters through the palm fronds, soft gray turning gold. You stir, feeling the rough leaves under you, the cool morning air on your skin.<</text>>\
<<girl1>><<link "Poke her gently">><<set $girlPortret to "girl_dirty_frown">><<set $dialogue to 2>><<goto $currentpassage>><</link>><</girl1>><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:90%; left:20%; width:300px; transform: rotateY(0deg); z-index: -2;"></div><<elseif $dialogue ==2>><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2>\
<<text>> Beside you the blonde woman shifts, a small sound escaping her lips as her eyelids flutter open. She blinks slowly, squinting against the light, then focuses on your face. Her expression shifts from confusion to faint recognition.<</text>>\
<<girl1>>Uhh… hey. I know you… or at least I think I do. Who are you?<</girl1>>\
<<player>>I’d like to know that too.<</player>><<set $girlPortret to "girl_dirty_surprised">>\
<<girl1>>Wait, what?<</girl1>>\
<<player>>I don’t remember who I am, or where I know you from. <<link "Continue">><<set $girlPortret to "girl_dirty_suspicious">><<set $dialogue to 3>><<goto $currentpassage>><</link>><</player>><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;"></div>\
<<elseif $dialogue ==3>><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2>\
<<text>>She sits up slowly, wincing, one hand pressing to her temple as if trying to push the fog out of her head. The yellow dress is wrinkled and sandy, still riding a little high on her thighs, but she tugs it down absently.<</text>>\
<<girl1>>I don’t remember anything either. Do you… know my name, maybe?<</girl1>>\
<<player>>No. But maybe we could come up with names for each other? Just so we have something to call one another while we figure this out.<</player>><<set $girlPortret to "girl_dirty_happy">>\
<<girl1>>Yeah… okay. You look like a <<textbox "$playername" $playername1>> to me. <<link "Ok">><<set $dialogue to 4>><<goto $currentpassage>><</link>><</girl1>><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;"></div>\
<<elseif $dialogue ==4>><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2>\
<<player>>That works. And you… you look like a <<textbox "$girlname" "Ann">><<link "Ok">><<set $dialogue to 5>><<goto $currentpassage>><</link>><</player>><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;"></div>\
<<elseif $dialogue ==5>><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2>\
<<girl1>>$girlname… that’s pretty. I like it.<</girl1>>\
<<text>>She gives a small, tired smile, the first real one you’ve seen from her. It softens her features, makes the whole situation feel slightly less insane for a moment. She pulls her knees up, wrapping her arms around them, staring out at the calm morning ocean.<</text>>\
<<think>>The names feel strange on your tongue, made-up placeholders, but saying them out loud makes her seem more real, less like a dream or a hallucination. $girlname. It fits her somehow. The headache from yesterday is gone, replaced by a quiet, steady awareness of how alone the two of you still are on this empty stretch of beach. <<link "Shelter" $currentpassage>><<set $dialogue ++>><</link>><</think>>\
<img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;"></div>\
<<elseif $dialogue ==6>><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;">\
<<text>>You look around at the cluster of palms nearby, their fronds heavy and plentiful. Building some kind of shelter seems like the smartest move right now, before the sun climbs higher and makes everything unbearable.<</text>>\
<<player>>I'm going to try building us a small shelter out of palm leaves. We've got plenty of material here. It won't be fancy, but it'll keep the rain off if it comes and give us some shade.<</player>>\
<<girl1>>That's actually a really good idea, $playername.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>\
</div>\
<<elseif $dialogue ==7>><<set $girlPortret to "girl_dirty_frown">><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;">\
<<text>>She nods, brushing sand from her arms, then glances down at herself, wrinkling her nose.<</text>>\
<<girl1>>While you work on that, I can go look for something to eat. But first I really need to clean up. I feel disgusting.<</girl1>><<player>>You are kind of covered in sand. Especially your face. When I found you, you were lying face-down in it.<</player>><<set $girlPortret to "girl_dirty_surprised">><<girl1>>Wait… you found me somewhere else? You carried me here?<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>\
</div>\
<<elseif $dialogue ==8>><<set $girlPortret to "girl_dirty_happy">><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit.png" style="position:absolute; top:75%; left:30%; width:260px; transform: rotateY(0deg); z-index: -2;">\
<<player>>Yeah. You were unconscious farther down the beach, on the left side. I brought you back to this spot because it seemed like the best place we've got.<</player>><<girl1>>Thank you. Seriously. Where exactly did you wake up?<</girl1>><<player>>Right here. This little raised bit of sand between the palms. I call it middle beach in my head.<</player>><<girl1>>Okay. I won't bombard you with a million questions about where we are, besides the obvious that it's an island. Blonde or not, I'm not that dumb.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>
</div>\
<<elseif $dialogue ==9>><<set $girlPortret to "girl_dirty_happy">><div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2><img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;">\
<<think>>She gives a small, self-deprecating smile.<</think>><<girl1>>If either of us remembers anything more, anything at all, we tell each other right away. Deal?<</girl1>><<player>>Deal.<</player>><<text>>She stands, smoothing her yellow dress as best she can, then heads toward the waterline where the tide pools look calmer. You watch her go for a second, then turn back to the task. <<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</text>>
</div>\
<<elseif $dialogue ==10>><h2>Beach middle</h2><<set $girlPortret to "girl_happy">>
<<text>>You spot two decent-sized, smooth stones half-buried in the sand. You pry them free, then start striking one against the other. Sparks fly, edges chip, until you have a rough, sharp flake that could serve as a blade. It's crude, but it'll cut.<Nearby lies a straight, sturdy stick about as tall as you. You pick it up, sit cross-legged, and begin shaving the end to a point, scraping with your new stone blade until it forms a decent spear tip. By the time $girlname returns, her face and arms freshly washed, hair damp and pushed back, the spear is finished. You stand and hand it to her handle-first.<</text>>\
<<player>>Here $girlname. For self-defense.<</player>>\
<<girl1>>Defense? Against what?<</girl1>>\
<<text>>She takes the spear, turning it over in her hands with a puzzled look.<</text>>\
<<player>>Wild animals. You know… like tigers.<</player>><<set $girlPortret to "girl_dirty_frown">>\
<<text>>She stares at you for a beat, then bursts out laughing, the sound bright and genuine against the quiet beach.<</text>>\
<<set $girlPortret to "girl_lol">><<girl1>>Tigers? Really?<</girl1>>\
<<player>>I mean... it could happen.<</player>>\
<<set $girlPortret to "girl_smile">><<girl1>>$playername, do you honestly think this little stick, or even both of us with it, would stand a chance against a tiger?<</girl1>>\
<<text>>She twirls the spear once, playfully, then plants the butt in the sand.<</text>>\
<<girl1>>If a tiger showed up, it would eat us. And then use this as a toothpick to get the bits of us out from between its teeth.<</girl1>>\
<<text>>She grins, eyes sparkling with amusement, but there's a warmth in it that makes the whole ridiculous moment feel a little less heavy. <<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</text>>\
<<elseif $dialogue ==11>><h2>Beach middle</h2><<set $girlPortret to "girl_happy">>
<<girl1>>Okay, I'm going to look for something edible. Fruit, maybe berries if we're lucky. Anything that doesn't try to eat me back.<</girl1>>\
<<player>>Wait. When I walked right along the beach earlier, I saw some coconut palms farther down. There were a few coconuts still up there, maybe some fallen ones too.<</player>><<set $girlPortret to "girl_suspicious">>\
<<girl1>>Coconuts. Perfect. That could actually work for both food and water.<</girl1>>\
<<think>>She pauses, doing quick math in her head, lips moving slightly as she calculates.<</think>>\
<<girl1>>We'd need about three per person per day just for hydration if we don't find fresh water. Each one has roughly half a liter. Three gives us one and a half liters, close enough to the minimum. If we do find a stream or something, two a day should cover calories too.<</girl1>>\
<<player>>You sound pretty sure about that. Are you?<</player>>\
<<girl1>>Pretty sure, yeah. Average adult needs around two thousand calories a day and about one and a half liters of water. One coconut gives you half a liter of water plus the meat. The flesh alone in a decent-sized one is around fifteen hundred calories, sometimes more depending on size. Three a day keeps you hydrated and fed if water's scarce. Two if you've got drinking water covered.<</girl1>>\
<<think>>You stare at her, genuinely impressed.<</think>>\
<<player>>Where the hell did that come from? You just pulled those numbers out of thin air.<</player>>\
<<girl1>>Maybe I'm a dietitian. Or was. It came really easily, like muscle memory.<</girl1>>\
<<text>>You let your eyes travel over her slowly, from bare feet up her long legs, past the curve of her hips, the fitted yellow dress, to her face.<</text>>\
<<player>>Or maybe you're just really into healthy eating and diets. That tracks too.<</player>><<set $girlPortret to "girl_happy">>\
<<girl1>>Could be. Either way, I'll take it.<</girl1>>\
<<player>>If we get those coconuts, the empty shells could work as bowls. Even for boiling water if we get a fire going.<</player>>\
<<girl1>>Wait. Wouldn't they just burn up in the fire?<</girl1>>\
<<player>>No. As long as there's water inside, it absorbs the excess heat. The shell won't catch fire until the water's gone. It's like nature's built-in safety valve.<</player>>\
<<text>>She blinks at you, eyebrows raised.<</text>><<set $girlPortret to "girl_dirty_frown">>\
<<girl1>>Okay, now you're the one sounding like an expert. Where did you get that?<</girl1>>\
<<player>>Saw it in some nature show or survival thing years ago. Stuck with me, I guess.<</player>>\
<<think>>For a second you both just look at each other, surprised by how naturally these random bits of knowledge surfaced. Like puzzle pieces from lives you can't remember.<</think>>\
<<text>>She gives a small laugh, shaking her head.<</text>><<set $girlPortret to "girl_smile">>\
<<girl1>>We're a weird pair, $playername. I go get those coconuts before the sun gets brutal.<</girl1>>\
<<think>>She starts walking right along the beach, spear in one hand like it's the most normal thing in the world. You go back to building shelter. <<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</think>>\
<<elseif $dialogue ==12>><h2>Beach middle</h2>
<<text>>You work methodically, sweat already beading on your skin as the sun climbs higher. You gather straight, sturdy branches from the base of the palms, lashing them together with thin, flexible vines you strip from nearby creepers. The frame comes together faster than you expected: two sloping sides forming a simple A-shape roof, angled to shed rain and catch the breeze.<</text>>\
<<text>>You layer the fronds thickly over the top, overlapping them like shingles, pressing them down until the structure looks surprisingly solid. It's low, barely tall enough to sit under comfortably, but it'll block the midday heat, cut the night wind, and keep you both mostly dry if the sky opens up.<</text>>\
<<think>>You step back to admire it, wiping your forehead with the back of your arm. Not bad for a first try with nothing but what the island gave you.<</think>>\
<<text>>In the distance, you spot $girlname making her way back along the beach. Her arms are loaded with coconuts, at least seven or eight pressed against her chest, the yellow dress stretched tight over them. She walks carefully, bare feet sinking into the sand with each step.<</text>>\
<<text>>When she reaches you, she lets them all drop at once with a heavy thud and a relieved exhale, bending forward to catch her breath.<</text>>\
<<girl1>>God… that was heavier than it looked.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>\
<<elseif $dialogue ==13>><div style="position:relative; width:800px; height:50px;"><h2>Beach middle</h2>
<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g1.png" style="position:absolute; bottom:-77vh; left:50%; width:20vh; transform: rotateY(0deg); z-index: -2;"><<set $girlPortret to "girl_look">>\
<<text>>She straightens, hands on her hips, and turns her attention to the shelter. Her eyes widen slightly, lips parting in genuine surprise.<</text>>\
<<girl1>>Okay… that actually looks really good, $playername. Like, legitimately solid. I'm impressed.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>\
</div>
<<elseif $dialogue ==14>><div style="position:relative; width:800px; height:50px;"><h2>Beach middle</h2>
<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g1.png" style="position:absolute; bottom:-77vh; left:50%; width:20vh; transform: rotateY(0deg); z-index: -2;"><<set $girlPortret to "girl_happy">>\
<<player>>Thanks. You didn't do too bad yourself. That's a serious haul.<</player>>\
<<text>>You nod toward the pile of coconuts, counting them quickly. Nine in total, green and brown husks still intact.<</text>>\
<<girl1>>The right side of the beach is basically covered in them. Fallen ones everywhere under the trees. We can easily stockpile enough to last us a while.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>\
</div>
<<elseif $dialogue ==15>>
<<player>>Do you actually like the taste of coconut? I mean, it's fine, but it gets old fast.<</player>><<set $girlPortret to "girl_youknow">>\
<<girl1>>I don't mind it. It's better than starving. But yeah… some variety would be nice. Fish, maybe, if we can figure out how to catch any.<</girl1>>\
<<player>>I'm not a huge fan either. Maybe there's other stuff on the island. Berries, bananas, something that isn't just more coconut.<</player>><<set $girlPortret to "girl_happy">>\
<<girl1>>Exactly. There has to be more. Coconuts are great for water and calories, but we should look for a real freshwater source too. A stream or spring would make a huge difference.<</girl1>>\
<<text>>She lowers herself onto the sand beside the shelter, stretching her legs out in front of her and leaning back on her hands. A small sigh escapes as she tilts her face toward the breeze.<</text>><<set $girlPortret to "girl_tired">>\
<<girl1>>I'm going to sit for a minute. My arms are killing me. Hey… would you mind checking the left side of the beach? See if there's anything different over there. Fruit, plants, anything that looks edible.<</girl1>>\
<<player>>Yeah, that's a good idea. I'll head over now before it gets too hot.<</player>>\
<<think>>You glance at the shelter one last time, satisfied it'll hold up, then look toward the curving shoreline to the left. The beach bends out of sight there, promising something new, or at least the chance of it.<<link " To the left beach." "beachmiddle">><<set $dialogue to 0>><<set $story to 23>><<set $pos to 29>><</link>><</think>>\
<</if>>
<</if>><<if $story ==12 or $story ==16 or $story ==20>> Click on the girl.<</if>>\
<<if $story ==18>> Click on bed.<</if>>\
<<if $story ==25>> Collect coconuts on the right beach.<</if>>\
<<if $story >=18>><<if $hour >=19>> Go to sleep.<<if $story ==26>> Click on tent<</if>><</if>><</if>>\
<<if $story ==27>>Find bananas and take them back to $girlname.<</if>>\
<<if $story ==28>>End of build!<</if>>\<<if !$currentpassage1>><<set $currentpassage1 to $currentpassage>><</if>><<set $currentpassage to "dream">><<if $dream == 1>><<if $dialogue ==1>><<set $gamebg = "sky.gif">>
<<think>>You finally drift off under the thin palm fronds, the sound of waves fading into a low hum. Darkness swallows you, then a sudden bright light cuts through it, sharp and white, forcing your eyes open in the dream.A face appears in the light, familiar in that nagging way, like something from a movie you watched. You remember her fighting aliens or something like that, kicking ass in tight gear, explosions everywhere, but the title, her name, nothing sticks.<</think>>\
<img src="nasty_castaway/story/sleep1.jpg" width="100%">\
<<goddes>>Witaj śmiertelniku.<</goddes>>\
<<goddes>>Willkommen, Sterblicher.<</goddes>>\
<<think>>You blink, confused. She tilts her head, seeing your blank expression.<</think>>\
<<goddes>>Oh, right. Hello, mortal.<</goddes>>\
<<think>>Her voice is smooth now, perfect English, amused.<</think>>\
<<goddes>> am the goddess of this island. You must be wondering why I brought you here.<</goddes>>\
<<player>><<link "Of course">><<set $dialogue to 2>><<goto $currentpassage>><</link>><</player>>\
<span class="debug"><<button"skip">><<set $dialogue to 8>><<goto $currentpassage>><</button>></span>
<<elseif $dialogue ==2>>\
<<think>>Before you can answer, a sharp flash blinds you. When it clears, she's sitting casually at a bar, sipping something colorful through a straw like this is just another Thursday night.<</think>>\
<img src="nasty_castaway/story/sleep2.jpg" width="50%">\
<<goddes>>Gotcha. Yeah, I look divine. but I'm not a goddess. I'm just your erotic fantasy.<</goddes>>\
<<think>>You stare, brain scrambling to catch up.<</think>>\
<<player>><<link "How did I get on this island? Am I a shipwreck survivor or what?">><<set $dialogue to 3>><<goto $currentpassage>><</link>><</player>>\
<<elseif $dialogue ==3>>\
<<think>>Another flash. Now she's perched on the stairs of an old sailing ship, full pirate outfit, tricorn hat tilted.<</think>>\
<img src="nasty_castaway/story/sleep3.jpg" width="100%">\
<<goddes>>Uhh, hold on... maybe not this kind of ship.<</goddes>>\
<<player>><<link "Wait what?">><<set $dialogue to 4>><<goto $currentpassage>><</link>><</player>>\
<<elseif $dialogue ==4>>\
<img src="nasty_castaway/story/sleep4.jpg" width="100%">\
<<goddes>>Okay, possible you're a yacht wreck survivor. <<link "Plausible.">><<set $dialogue to 5>><<goto $currentpassage>><</link>><</goddes>>\
<<elseif $dialogue ==5>>\
<<think>>Flash. Red dress, black stockings, she's standing in a sleek metal corridor, lights pulsing along the walls of what looks like a spaceship.<</think>>\
<img src="nasty_castaway/story/sleep5.jpg" width="100%">\
<<goddes>>Spaceship? Nah, doubtful. You do know this is just your dream, right? Your personal erotic fantasy.<</goddes>>\
<<text>>She steps closer, smirking.<</text>>\
<<goddes>>So why aren't you picturing something hotter? Me with really killer <<link "legs.">><<set $dialogue to 6>><<goto $currentpassage>><</link>>, for example.<</goddes>>\
<<elseif $dialogue ==6>>\
<<think>>Flash. Flight attendant uniform, short skirt, heels, she's seated at an airport gate, legs crossed long and toned, blouse unbuttoned just enough to show deep cleavage.<</think>>\
<img src="nasty_castaway/story/sleep6.jpg" width="50%">\
<<goddes>>There, much better. But your subconscious is telling you you're not a plane crash survivor either.<</goddes>>\
<<think>><<link "Flash">><<set $dialogue to 7>><<goto $currentpassage>><</link>><</think>>\
<<elseif $dialogue ==7>>\
<img src="nasty_castaway/story/sleep7.jpg" width="100%">\
<<goddes>>Sigh. You could have imagined us doing all kinds of fun stuff all night, and instead you wasted it on these dumb scenarios.<</goddes>>\
<<think>>She leans toward you, voice dropping low.<</think>>\
<<goddes>>Next time, dream bigger. Or different me. Or at least dream dirtier. <</goddes>>\
<<think>>The scene starts to blur at the edges, light fading, her laugh echoing as everything dissolves back into darkness and the distant sound of real waves.<</think>>\
<<button"Wake up">><<set $dialogue to 8>><<set $bgdark to 0.3>><<goto $currentpassage>><</button>>
<<elseif $dialogue ==8>><<set $gamebg = "beachmiddle.jpg">>\
<div style="position:relative; width:800px; height:590px;"><h2>Beach middle</h2><<button"Wake up">><<unset $currentpassage1>><<set $dialogue to 1>><<set $hour to 7>><<set $dream to 2>><<set $story to 20>><<set $pos to 30>><<goto "beachmiddle">><</button>>
<img src="nasty_castaway/silhouettes/bed.png" style="position:absolute; top:100%; left:8%; width:600px; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g3.png" style="position:absolute; top:90%; left:20%; width:300px; transform: rotateY(0deg); z-index: -2;"></div><</if>>
<<elseif $dream == 2>>\
<<if $dialogue ==0>><<set $gamebg = "sky.gif">>
<img src="nasty_castaway/story/sleep1.jpg" width="100%">\
<<goddes>>Hello, again.<</goddes>>\
<<player>>Hello to you.<</player>>\
<<goddes>>Damn, I forgot to change.<<link " flash" $currentpassage>><<set $dialogue ++>><</link>><</goddes>>\
<<elseif $dialogue ==1>>\
<img src="nasty_castaway/story/sleep8.jpg" width="100%">
<<set $goddesPortret to "goddess2">>\
<<goddes>>Better now<</goddes>>\
<<think>>She looks at herself<</think>>\
<<goddes>>I see you dream a little more boldly. Good. Well, at least I'm in a short skirt.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</goddes>>\
<<elseif $dialogue ==2>>\
<img src="nasty_castaway/story/sleep8.jpg" width="100%">
<<goddes>>Let's check your progress...<</goddes>>\
<<think>>She narrows her eyes, looking at you closely.<</think>>\
<<goddes>><<if $fcoconuts >=1>>You found some coconuts, good. You're not completely hopeless.<<else>>No coconuts? Are you kidding me? You won't find a tree in the forest either? You need to step up your game.<</if>><<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</goddes>>\
<<elseif $dialogue ==3>>\
<img src="nasty_castaway/story/sleep9.jpg" width="50%">
<<goddes>>Okay back to school. Let's start with your name.<</goddes>>\
<<player>>What?<</player>>\
<<goddes>>Hello "what" nice to meet you<</goddes>>\
<<think>>She tilts her head, looking at you like you're an idiot.<</think>>\
<<goddes>>I was joking. Well, what's your name, don't be shy.<</goddes>>\
<<player>>$playername<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</player>>\
<<elseif $dialogue ==4>>\
<img src="nasty_castaway/story/sleep10.jpg" width="50%">
<<goddes>>Okay, listen. In the jungle near the beach you will find bananas.<</goddes>>\
<<player>>How do you know this?<</player>>\
<<goddes>>Just because I'm your erotic dream doesn't mean I don't have access to your memory. Coming out of the jungle, you saw bananas out of the corner of your eye through the leaves and you didn't consciously register it. Fortunately, I have access to your subconscious.<</goddes>>\
<<player>>Thanks for the info<</player>>\
<<goddes>>Okay, I'm leaving because I have some cleaning to do for now, mortal.<</goddes>>\
<<button"wake">><<set $currentpassage to $currentpassage1>><<set $dialogue to 0>><<set $dream to 3>><<set $story to 27>><<goto "sleep">><</button>>
<</if>>
<</if>><<set $currentpassage to "storyCH1">><<if $story ==23>><h2>Waterfall</h2><<if $dialogue == 0>><<set $gamebg = "waterfall.jpg">><<text>>The roar of falling water grows louder with every step, a steady thunder that drowns out the insects and birds. You push through the last screen of vines and suddenly the trees part. Before you stretches a waterfall, not enormous but impressive, maybe twenty feet high, sheets of clear water plunging from a rocky ledge into a deep, turquoise pool below. Mist rises where the cascade meets the surface, catching the afternoon sun in faint rainbows.The pool feeds directly into the narrow river you've been following for hours. Crystal water spills over smooth stones, forming the gentle current that led you here. It's late afternoon now, sun slanting low through the canopy, turning the mist golden.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</text>><<elseif $dialogue == 1>><<think>>You wipe sweat from your face and take stock. The walk upriver took longer than expected, several hours at least. The river started straight inland from the beach, but gradually bent more and more to the right, almost circling back. If your sense of direction is right, heading south from here should bring you out near middle beach or the right side again.
You circle the pool's edge, scanning for an easy way forward. The jungle presses thick on three sides, but on the southern bank, where the river flows out, you spot a faint gap in the undergrowth. Not a real trail, but a natural thinning of vines and ferns, like something has passed through often enough to keep it open. You step onto it carefully. The path is narrow, roots snaking across the dirt, but it heads roughly south. Better than hacking through solid green.<<link " south" $currentpassage>><<set $dialogue to 0>><<set $story to 24>><</link>><</think>>\
<</if>><<elseif $story ==24>><<if $dialogue == 0>><<set $gamebg = "jungle.jpg">>><h2>Jungle</h2>
<<think>>The path forks here, one branch veering slightly left into denser trees, the other continuing straight south. In the distance through the gap, blue ocean glints under the lowering sun. The familiar crash of waves reaches you, faint but unmistakable.
You're closer to the beach than you thought. The fork to the left might lead somewhere else inland, but straight ahead promises the shoreline you've been aiming for. Middle beach should be somewhere along that stretch, or at least the right side where the coconuts are thick.<<link " south" $currentpassage>><<set $pos to 28>><<set $dialogue to 1>><</link>><</think>>\
<<elseif $dialogue == 1>><<set $gamebg = "beachmiddle.jpg">><div style="position:relative; width:800px; height:50px;"><h2>Beach middle</h2>
<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/campfire.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g_sit2.png" style="position:absolute; bottom:-77vh; left:52%; width:22vh; transform: rotateY(0deg); z-index: -2;">
<<text>>You emerge from the tree line onto the familiar stretch of middle beach just as the sun dips low, painting the sand in long orange shadows. The shelter you built earlier stands unchanged, fronds still neatly layered. $girlname is sitting near it, knees drawn up, staring out at the waves. She spots you immediately and stands, relief flashing across her face. <<link " continue" $currentpassage>><<set $girlPortret to "girl_happy">><<set $dialogue ++>><</link>><</text>>\
</div>
<<elseif $dialogue == 2>><<set $gamebg = "beachmiddle.jpg">><div style="position:relative; width:800px; height:50px;"><h2>Beach middle</h2>
<img src="nasty_castaway/silhouettes/tent.png" style="position:absolute; bottom:-75vh; left:20%; width:35vh; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/campfire.png" style="position:absolute; bottom:-82vh; left:32%; width:20vh; transform: rotateY(0deg); z-index: -3;"><img src="nasty_castaway/silhouettes/g1.png" style="position:absolute; bottom:-77vh; left:52%; width:20vh; transform: rotateY(0deg); z-index: -2;">
<<girl1>>There you are. I was starting to worry. You look exhausted, $playername.<</girl1>>\
<<text>>She hurries over, brushing sand from her hands. Up close you can see she's used the time well: several medium-sized smooth stones are arranged in a rough circle a few feet from the shelter, forming a clear fire pit ready for kindling.<</text>>\
<<girl1>>While you were gone I gathered these for a fire pit. Thought it might help tonight when it gets cooler. Here, sit. You need this.<<link " continue" $currentpassage>><<set $dialogue ++>><</link>><</girl1>>\
</div>
<<elseif $dialogue ==3>><h2>Beach middle</h2>
<<text>>She picks up two fresh coconuts from the pile, cracks one open expertly against a rock - probably something she figured out while you were away - and hands you the halves. The water inside is cool and sweet. You drink deeply, the liquid soothing your dry throat after hours of walking.<</text>>\
<<player>>Thanks. That hits the spot. I followed the river inland. It led me to a waterfall, nice pool at the bottom. Then I took a path south and it brought me back here in a big loop.<</player>>\
<<girl1>>A waterfall? That's huge. Fresh water?<</girl1>>\
<<player>>Yeah, clean and flowing. And there are natural paths through the jungle. Nothing beaten-down like animals made them, just thinner spots in the undergrowth. I could explore them tomorrow, see where they lead. Might find more resources, or even a better spot.<</player>>\
<<girl1>>Good thinking. We need to know what's out there. But first... I've been trying to figure out how to carry more than a couple coconuts at a time. My arms are still sore from earlier. Any ideas?<</girl1>>\
<<player>>Yeah. I was thinking about that too. We could weave something from palm leaves, like a net or a loose basket. Strong enough to sling over the back and carry a bunch like a sack. I've seen it done in survival videos.<</player>>\
<<girl1>>A woven net carrier. Smart. If it's sturdy enough, we could even try using it in the water to catch fish. Like a makeshift net trap.<</girl1>>\
<<text>>She looks toward the shallows, eyes narrowing thoughtfully at the idea. You mentally picturing how to weave those broad palm leaves into something useful.<<link " continue" $currentpassage>><<set $calories to 2000>><<set $milliliters to 1500>><<set $dialogue ++>><</link>><</text>>
<<elseif $dialogue ==4>><h2>Beach middle</h2>
<<text>>It takes a while to gather enough broad palm leaves, the kind that are still green and flexible enough to bend without snapping. You sit cross-legged in the shade of the shelter, tearing them carefully into long, even strips with your stone blade. The work is repetitive, almost meditative, the sound of ripping fiber mixing with the distant waves. Once you have a decent pile of strips, you start weaving. Simple over-under pattern, nothing fancy, just tight enough to hold weight. You link the strips into a rough rectangular net, reinforcing the edges by doubling the weave. After about an hour your hands are sore and green-stained, but the result is solid: a loose, open-mesh carrier about the size of a large backpack, with long vines tied to the corners as straps.Not pretty, but it should do the job. You test it by loading a few coconuts from the pile - it holds without tearing. Good enough.<</text>><<player>>I'm heading right to grab more coconuts. This thing should make it way easier to carry a real load back.<</player>><<girl1>>Looks sturdy. Just don't overdo it on the first trip. And watch for falling ones - those things hurt when they drop.<</girl1>><<text>>She gives you a small smile, then turns back to arranging more kindling in the fire pit while the light is still good.<<link " Trip to the right beach" "beachmiddle">><<set $pos to 27>><<set $dialogue to 0>><<set $story to 25>><</link>><</text>>\
<</if>>
<</if>>
<<silently>>
<<if $story == 25>><<set $story to 26>><</if>>
<<set $currentpassage to "coconut1">><<set $gamebg = "coconut1.jpg">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<set $rcoconuts to random(1, 5)>>
<<endsilently>>\
<div style="position:relative; width:100vh; height:52vh;
background-color: rgba(34, 34, 34, 0.0);"> <<text>>You found coconuts🥥<</text>><<if $hour >=7 and $hour <=17>><<button "Search again">><<set $coconutsnumber to random(2, 5)>><<set $hour to $hour+random(1, 2)>><<if $rcoconuts ==1>><<goto "coconut1">><<elseif $rcoconuts ==2>><<goto "coconut2">><<elseif $rcoconuts ==3>><<goto "coconut3">><<else>><<goto "nococonuts">><</if>><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>><<button "Go back">><<goto "beachright">><</button>>
</div>
<div id="coconutArea" style="position:relative; width:70vh; height:15vh;
background-color: rgba(34, 34, 34, 0.0);">
<<for _i = 0; _i < $coconutsnumber; _i++>>
<<set _x = random(-30,75)>>
<<set _y = random(20,90)>>
<<set _coconut = random(0,5)>>
<img @src="'nasty_castaway/silhouettes/coconut' + _coconut + '.png'"
@style="'position:absolute; left:' + _x + '%; top:' + _y + '%; width:40px; cursor:pointer;'"
onclick="this.classList.add('hidden'); SugarCube.State.variables.fcoconuts++; SugarCube.State.variables.coconutsnumber--;">
<</for>>
</div><<silently>>
<<if $story == 25>><<set $story to 26>><</if>>
<<set $currentpassage to "coconut2">><<set $gamebg = "coconut2.jpg">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<set $rcoconuts to random(1, 5)>>
<<endsilently>>\
<div style="position:relative; width:100vh; height:55vh;
background-color: rgba(34, 34, 34, 0.0);"> <<text>>You found coconuts🥥<</text>><<if $hour >=7 and $hour <=17>><<button "Search again">><<set $coconutsnumber to random(2, 6)>><<set $hour to $hour+random(1, 2)>><<if $rcoconuts ==1>><<goto "coconut1">><<elseif $rcoconuts ==2>><<goto "coconut2">><<elseif $rcoconuts ==3>><<goto "coconut3">><<else>><<goto "nococonuts">><</if>><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>><<button "Go back">><<goto "beachright">><</button>></div>
<div id="coconutArea" style="position:relative; width:70vh; height:15vh;
background-color: rgba(34, 34, 34, 0.0);">
<<for _i = 0; _i < $coconutsnumber; _i++>>
<<set _x = random(-30,75)>>
<<set _y = random(20,90)>>
<<set _coconut = random(0,5)>>
<img @src="'nasty_castaway/silhouettes/coconut' + _coconut + '.png'"
@style="'position:absolute; left:' + _x + '%; top:' + _y + '%; width:40px; cursor:pointer;'"
onclick="this.classList.add('hidden'); SugarCube.State.variables.fcoconuts++; SugarCube.State.variables.coconutsnumber--;">
<</for>>
</div><<silently>>
<<if $story == 25>><<set $story to 26>><</if>>
<<set $currentpassage to "coconut3">><<set $gamebg = "coconut3.jpg">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<set $rcoconuts to random(1, 5)>>
<<endsilently>>\
<div style="position:relative; width:100vh; height:55vh;
background-color: rgba(34, 34, 34, 0.0);"> <<text>>You found coconuts🥥<</text>><<if $hour >=7 and $hour <=17>><<button "Search again">><<set $coconutsnumber to random(2, 8)>><<set $hour to $hour+random(1, 2)>><<if $rcoconuts ==1>><<goto "coconut1">><<elseif $rcoconuts ==2>><<goto "coconut2">><<elseif $rcoconuts ==3>><<goto "coconut3">><<else>><<goto "nococonuts">><</if>><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>><<button "Go back">><<goto "beachright">><</button>></div>
<div id="coconutArea" style="position:relative; width:70vh; height:15vh;
background-color: rgba(34, 34, 34, 0.0);">
<<for _i = 0; _i < $coconutsnumber; _i++>>
<<set _x = random(-30,75)>>
<<set _y = random(20,90)>>
<<set _coconut = random(0,5)>>
<img @src="'nasty_castaway/silhouettes/coconut' + _coconut + '.png'"
@style="'position:absolute; left:' + _x + '%; top:' + _y + '%; width:40px; cursor:pointer;'"
onclick="this.classList.add('hidden'); SugarCube.State.variables.fcoconuts++; SugarCube.State.variables.coconutsnumber--;">
<</for>>
</div><<silently>><<if $rcoconuts ==4>><<set $gamebg = "coconut1.jpg">><<elseif $rcoconuts ==5>><<set $gamebg = "coconut2.jpg">><</if>>
<<set $currentpassage to "nococonuts">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<set $rcoconuts to random(1, 5)>>
<<endsilently>>\
<div style="position:relative; width:100vh; height:55vh;
background-color: rgba(34, 34, 34, 0.0);"> <<text>>No coconuts around<</text>><<if $hour >=7 and $hour <=17>><<button "Search again🥥">><<set $coconutsnumber to random(2, 10)>><<set $hour to $hour+random(1, 2)>><<if $rcoconuts ==1>><<goto "coconut1">><<elseif $rcoconuts ==2>><<goto "coconut2">><<elseif $rcoconuts ==3>><<goto "coconut3">><<else>><<goto "nococonuts">><</if>><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>><<button "Go back">><<goto "beachright">><</button>></div>
<<set $gamebg = "inventory.jpg">><<if !$fcoconuts_w_water >><<set $fcoconuts_w_water to 0>><</if>>
<h2>Inventory:</h2>
<<if $fcoconuts >=1>><<item "coconut">>Coconuts: $fcoconuts <<if $milliliters <= 1400>><<link "Drink">><<set $fcoconuts-->><<set $fcoconutse++>><<set $milliliters +=500>><<goto "inventory">><</link>><</if>> <<if $calories <= 1900>><<link "Eat">><<set $fcoconutss++>><<set $fcoconuts-->><<set $calories +=1500>><<set $milliliters +=500>><<goto "inventory">><</link>><</if>><</item>><</if>>\
<<if $fcoconutse >=1>><<item "coconutopen">>Coconuts empty: $fcoconutse <<if $calories <= 1900>><<link "Eat">><<set $fcoconutss++>><<set $fcoconutse-->><<set $calories +=1500>><<goto "inventory">><</link>><</if>><</item>><</if>>\
<<if $fbanana >=1>><<item "bananasingle">>Banana: $fbanana <<if $calories <= 1900>><<link "Eat">><<set $fbanana-->><<set $calories +=130>><<set $milliliters +=50>><<goto "inventory">><</link>><</if>><</item>><</if>>\
<<if $fcoconutss >=1>><<item "coconutempty">>Coconuts shells: $fcoconutss<</item>><</if>>\
<<if $fcoconuts_w_water >=1>><<item "coconutw">>Coconut with dirty water: $fcoconuts_w_water You have to boil over the fire<</item>><</if>>\
<<if $fcoconuts_w_waterb >=1>><<item "coconutw">>Coconut filled with boiled water: $fcoconuts_w_waterb <<if $milliliters <= 1400>><<link "Drink">><<set $fcoconuts_w_waterb-->><<set $milliliters +=500>><<goto "inventory">><</link>><</if>><</item>><</if>>\<<silently>>
<<set $currentpassage to "banana">>
<<set $bgdark = $hour <= 3 ? 0.9 : $hour == 4 ? 0.7 : $hour == 5 ? 0.5 : $hour == 6 ? 0.3 : $hour <= 17 ? 0.0 : $hour == 18 ? 0.3 : $hour == 19 ? 0.5 : $hour == 20 ? 0.7 : 0.9 >>
<<endsilently>>\
<div style="position:relative; width:800px; height:590px;">
<h2>Jungle</h2>
<<if $rcoconuts ==1>><<text>>Banana tree<</text>><<set $gamebg = "banana1.jpg">><span id="b1"><<link '<img src="nasty_castaway/silhouettes/banana2.png" style="position:absolute; top:20%; left:40%; width:400px; transform: rotateY(0deg); cursor:pointer; ">' >><<set $fbanana to $fbanana+random(15, 30)>><<set $rcoconuts to 4>><<run toggle('t1', 'b1')>><</link>></span><span id="t1" class="hidden"> <img src="nasty_castaway/silhouettes/banana1.png" style="position:absolute; top:20%; left:40%; width:400px; transform: rotateY(0deg);">'<<if $story ==27>><<text>>Time to go back to $girlname<</text>><</if>></span>
<<elseif $rcoconuts ==2>><<text>>Banana tree<</text>><<set $gamebg = "banana1.jpg">><span id="b2"><<link '<img src="nasty_castaway/silhouettes/banana4.png" style="position:absolute; top:20%; left:45%; width:400px; transform: rotateY(0deg); cursor:pointer;">' >><<set $rcoconuts to 5>><<set $fbanana to $fbanana+random(15, 30)>><<run toggle('t2', 'b2')>><</link>></span><span id="t2" class="hidden"> <img src="nasty_castaway/silhouettes/banana3.png" style="position:absolute; top:20%; left:45%; width:400px; transform: rotateY(0deg);">'</span>
<<elseif $rcoconuts ==3>><<text>>Banana tree<</text>><<set $gamebg = "banana2.jpg">><span id="b2"><<link '<img src="nasty_castaway/silhouettes/banana4.png" style="position:absolute; top:15%; left:30%; width:420px; transform: rotateY(180deg); cursor:pointer;">' >><<set $rcoconuts to 6>><<set $fbanana to $fbanana+random(15, 30)>><<run toggle('t2', 'b2')>><</link>></span><span id="t2" class="hidden"> <img src="nasty_castaway/silhouettes/banana3.png" style="position:absolute; top:15%; left:30%; width:420px; transform: rotateY(180deg);">'</span>
<<elseif $rcoconuts ==4>><<text>>Empty banana tree<</text>><<set $gamebg = "banana1.jpg">><img src="nasty_castaway/silhouettes/banana1.png" style="position:absolute; top:20%; left:40%; width:400px; transform: rotateY(0deg);">
<<elseif $rcoconuts ==5>><<text>>Empty banana tree<</text>><<set $gamebg = "banana1.jpg">><img src="nasty_castaway/silhouettes/banana3.png" style="position:absolute; top:20%; left:45%; width:400px; transform: rotateY(0deg);">
<<elseif $rcoconuts ==6>><<text>>Empty banana tree<</text>><<set $gamebg = "banana2.jpg">><img src="nasty_castaway/silhouettes/banana3.png" style="position:absolute; top:15%; left:30%; width:420px; transform: rotateY(180deg);"><</if>>
<<if $hour >=7 and $hour <=17>><<button "Look for bananas🍌">><<set $hour to $hour+random(1, 2)>><<set $rcoconuts to random(1, 5)>><<goto "banana">><</button>><<else>><span class="disableButton" ><<button "too late to search">><</button>></span><</if>>
<<button "Go back">><<set $hour ++>><<goto "jungle">><</button>>
</div><<if $calories <= -2000>>You died of hunger<</if>><<if $milliliters <= -1500>>You died of thirst<</if>><<goto "endgame">><<set $currentpassage to "river">><h2>River</h2>
<<if $dialogue ==0>><<set $gamebg = "river1.jpg">>
<<text>>You manage to find a river<</text>>\
<<player>>Great, just boil it and you have drinking water.<</player>>\
<<think>>Maybe I should investigate where this water is coming from. Usually, if there is a river and someone lives in the area, they will live near the river.<</think>>\
<<button "Keep going along the river">><<set $hour ++>><<set $dialogue ++>><<goto "river">><</button>><<elseif $dialogue ==1>><<set $gamebg = "river2.jpg">><<text>>You go deeper into the jungle, following the river.<</text>>\
<<button "Keep going along the river">><<set $hour ++>><<set $dialogue ++>><<goto "river">><</button>>
<<elseif $dialogue ==2>><<set $gamebg = "river3.jpg">><<text>>As you go deeper and deeper, you feel it getting colder thanks to the dense canopy of trees.<</text>>\
<<button "Keep going along the river">><<set $hour ++>><<set $dialogue ++>><<goto "river">><</button>>
<<elseif $dialogue ==3>><<set $gamebg = "river4.jpg">><<text>>You've been walking along the river for several hours and you start to wonder if you'll find anything.<</text>>\
<<button "Keep going along the river">><<set $hour ++>><<set $dialogue ++>><<goto "river">><</button>>
<<elseif $dialogue ==4>><<set $gamebg = "river5.jpg">><<text>>The convenient route next to the river ends in dense bushes that will be difficult to get through. When you stop for a moment to rest, you hear the loud sound of water in the distance.<</text>>\
<<button "Investigate">><<set $hour ++>><<set $dialogue to 0>><<goto "storyCH1">><</button>>
<</if>><<set $currentpassage to "waterfall">><<set $gamebg = "waterfall.jpg">><h2>Waterfall</h2>
<<if $story >=25>><<if $fcoconutss >=1>><<button "Scoop water into the coconut 💧">><<set $fcoconutss -->><<set $fcoconuts_w_water ++>><<goto $currentpassage>><</button>><</if>><</if>>
<<button "Get back">><<goto "jungle">><</button>><<set $currentpassage to "cave">><<set $gamebg = "cave.jpg">>secondcuppledamaging your leg or that of your rival.<<if $hour >=20 or $hour <=5>><<if $lit == 0>><<set $gamebg = "campfire_night.jpg">><<elseif $lit == 1>><<set $gamebg = "campfire_night_lit.jpg">><</if>><<else>><<if $lit == 0>><<set $gamebg = "campfire.jpg">><<elseif $lit == 1>><<set $gamebg = "campfire_lit.jpg">><</if>><</if>>\
<<if $lit == 1>>\
<<button "put out the fire">><<set $lit to 0>><<goto "campfire">><</button>><<if $fcoconuts_w_water >=1>>
<<button "Boil water in coconut">><<set $fcoconuts_w_water -->><<set $fcoconuts_w_waterb ++>><<goto "campfire">><</button>><</if>> <<elseif $lit == 0>><<button "light a fire">><<set $lit to 1>><<goto "campfire">><</button>><</if>>
<<button "Get back">><<goto $currentpassage>><</button>>
<<silently>>
<span style=" font-size: 4em;">🔥</span>
<<endsilently>>\<<set $gamebg = "tent.jpg">><<button "Sleep">><<set $sleep to 1>><<if $dream <=10>><<goto "dream">><<else>><<goto "sleep">><</if>><</button>>
<<button "Get back">><<goto $currentpassage>><</button>>
<<if !$fcoconuts_w_water >><<set $fcoconuts_w_water to 0>><</if>>
<<if !$goddesPortret >><<set $goddesPortret to "Goddess">><</if>>
<<if $sleep == 1>><<set $gamebg = "tent.jpg">><<set $tent to 0>><<text>>You sleep peacefully in the tent.<</text>>
<<button "Wake">><<set $sleep to 0>><<set $lit to 0>><<set $hour to 6>><<set $day ++>><<set $days ++>><<goto $currentpassage>><</button>><<else>><<text>>You fainted from exhaustion.
<</text>><<button "Wake">><<set $sleep to 0>><<set $lit to 0>><<set $hour to 6>><<set $day ++>><<set $days ++>><<goto $currentpassage>><</button>>
<</if>>