initial pet progress

This commit is contained in:
zyl 2024-06-21 11:58:15 -07:00
parent 8d9866d048
commit 9b517efed8
No known key found for this signature in database
4 changed files with 236 additions and 1 deletions

25
site/pages/pet.md Normal file
View file

@ -0,0 +1,25 @@
---
title: pet
scripts: ["js/pet.js"]
styles: ["pet.css"]
---
<div id="pet-display">
<p>--pet placeholder here--</p>
<!-- TODO: make pets interactable -->
</div>
<div id="egg">
<p>whoa! you just found an egg somewhere! maybe you should watch it and see what happens..</p>
</div>
<div id="pet-setup" class="hidden">
<p>whoa! your egg just hatched into a new creature! what should you name it?</p>
<input type="text" name="pet-name" max-length="50">
<button>name it!</button>
</div>
<div id="debug-section">
<button id="force-update">force update</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></p>
</div>