webdog/site/pages/pet.md

76 lines
3.1 KiB
Markdown
Raw Normal View History

2024-06-21 11:58:15 -07:00
---
title: pet
scripts: ["js/pet.js"]
styles: ["pet.css"]
2024-06-25 01:06:54 -07:00
embed:
title: raise a pet
site_name: test
description: come raise a cool pet! you could get a square. or a circle. or a triangle. who knows?
2024-06-21 11:58:15 -07:00
---
2024-06-24 23:21:00 -07:00
<div id="pet">
<noscript><p>javascript is required for the pet game!!</p></noscript>
2024-06-21 11:58:15 -07:00
<div id="pet-display">
2024-06-24 23:21:00 -07:00
<h2 class="pet-name"></h2>
2024-06-25 00:02:11 -07:00
<div class="the-pet"></div>
2024-06-25 00:42:10 -07:00
<div class="status">
<p name="hungry" class="hidden"><span class="pet-name"></span> looks hungry..</p>
<p name="starving" class="hidden"><span class="pet-name"></span> is starving!! you need to feed them!!</p>
<p name="unhappy" class="hidden"><span class="pet-name"></span> looks at you with wide eyes..</p>
<p name="messy-1" class="hidden"><span class="pet-name"></span> has left a bit of a mess! time to clean!</p>
<p name="messy-2" class="hidden">there's even more mess in here.. shouldn't you clean it for <span class="pet-name"></span>?</p>
<p name="messy-3" class="hidden">what a mess!! <span class="pet-name"></span> can't be happy.. you've gotta clean in here</p>
</div>
2024-06-21 11:58:15 -07:00
</div>
<div id="egg">
2024-06-24 23:21:00 -07:00
<p>whoa! you just found a weird egg! maybe you should watch it and see what happens..</p>
2024-06-21 11:58:15 -07:00
</div>
2024-06-24 23:21:00 -07:00
<div id="adult-info" class="hidden">
<p><span class="pet-name"></span> has grown up to be an adult!! what will they do with their life now....</p>
<button class="advance">okay!</button>
</div>
<div id="elder-info" class="hidden">
<p>oh? <span class="pet-name"></span> has aged and is now an elder creature! they may not have much left in their life.... hopefully it's been a good life!</p>
<button class="advance">hopefully!!</button>
</div>
<div id="passed-away-info" class="hidden">
<p>oh... <span class="pet-name"></span> has finally gone and kicked the bucket. its story comes to an end....</p>
<button>but what's this egg lying here about..?</button>
</div>
<form id="pet-setup" class="hidden">
2024-06-21 11:58:15 -07:00
<p>whoa! your egg just hatched into a new creature! what should you name it?</p>
2024-06-24 23:21:00 -07:00
<input type="text" name="pet-name" min-length="3" max-length="50">
<button type="submit">name it!</button>
</form>
<div id="pet-actions">
<div name="hatched-actions" class="hidden">
<button name="feed">feed</button>
<button name="pet">pet</button>
<button name="clean">clean</button>
</div>
<button name="pause">pause</button>
2024-06-21 11:58:15 -07:00
</div>
2024-06-24 23:21:00 -07:00
<div id="debug-section" class="hidden">
<button id="force-update">force update</button> <button id="reset">reset</button>
<p>LS: <span name="ls"></span> A: <span name="a"></span> F: <span name="f"></span> B: <span name="b"></span> P: <span name="p"></span> MC: <span name="mc"></span> H: <span name="h"></span></p>
</div>
2024-06-21 11:58:15 -07:00
</div>
2024-06-25 00:19:44 -07:00
<details>
<summary>tips!!</summary>
<ul>
<li>pets need to be fed about once every eight hours!</li>
<li>the game (currently) doesn't simulate while the page is unloaded, so make sure to keep the page loaded for your pet to exist!</li>
<li>make sure to keep your pet clean!!</li>
<li>if your pet is turning grey, make sure you're giving them the attention they need!! pet's deserve happiness too :(</li>
2024-06-25 00:45:33 -07:00
<li>if you take good enough care of your pet they'll stop going potty on the floor!</li>
2024-06-25 00:19:44 -07:00
</ul>
</details>