Pets
Embed on a remote site
The built site ships a single UMD file β include it, then create a pet. It uses the built-in ZIP parser (DecompressionStream) and falls back to direct spritesheets on older browsers.
<!-- DeltaPet: a pet for your website β one file, zero dependencies -->
<script src="https://pets.deltalab.gr/deltapets-web.js"></script>
<script>
var pet = new DeltaPet({ zip: "https://pets.deltalab.gr/pets/fox.zip", theme: "light" });
pet.on("load", function () { pet.say("Hi! I'm a fox π¦", { duration: 4000 }); });
</script>
zip can be ommited.
<script src="https://pets.deltalab.gr/deltapets-web.js"></script>
<script>
new DeltaPet();
</script>
With no arguments it loads the default pet (Mikan) with all defaults.
Actions
Event log
β event log β