Something went wrong. Try again.
a tiny pet with a GPT-2 brain, living in your browser
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748import type { Action, Config, Stat } from "../types.ts";const element = document.getElementById("pet-config");if (!element?.textContent) throw new Error("Missing #pet-config JSON configuration");export const CFG: Config = JSON.parse(element.textContent);export const DEBUG = new URLSearchParams(location.search).get("debug") === "1" || location.hash.slice(1) === "debug";export { DAY, HOUR, MIN } from "./utils.ts";export const WANT_ICON: Record<string, string> = { snack: "cookie", play: "ball", bath: "bubbles", sleep: "moon", pats: "heart", medicine: "pill",};export const OFFER_ICON: Record<string, string> = { bath: "bubbles", medicine: "pill", play: "ball",};export const NAME_IDEAS = [ "Mochi", "Pip", "Bean", "Tofu", "Nori", "Puddle", "Sprout", "Pebble", "Momo", "Kiwi", "Dumpling", "Boba", "Miso", "Clover", "Noodle", "Gumdrop", "Yuzu", "Biscuit", "Fig", "Bun",];// Display order of the meters. Saves can arrive with keys in another order// (the host serializes them alphabetically), so never render by key order.export const STATS: readonly Stat[] = ["tummy", "fun", "energy", "clean"];export const FEATURE_TEXT: Record<string, string> = {};export const ACT_NEEDS: Partial<Record<Action, string>> = {};