Virtual pet built with Angular. The app combines a Tamagotchi-style care loop, animated sprite states, inventory items, simple minigames, daily rewards, and an AI chat so the pet can respond with personality.
- Virtual pet stats: health, food, happiness, energy, cleanliness, sleep state, death state, and adventure counter.
- Day and night scenes driven by the current local time.
- Animated sprites for neutral, happy, sad, sleepy, sleeping, dirty, and sick states.
- Dedicated game-over scenes for day and night.
- Pet naming flow with a startup modal and reset modal.
- Inventory grouped by food, medicine, cleaning, toys, and special items.
- Daily special gift that can be claimed once per day.
- Minigame area with a reaction game.
- Sprite review page at
/revisarspriteto compare all animation states. - AI chat with Gemini or MiniMax provider selection.
- Local chat memory for user name, remembered notes, and recent conversation.
The chat can use either Google Gemini or MiniMax. Open the AI setup modal from the chat status button and choose one provider.
Only one provider can be active at a time. To switch providers, disconnect the current one with Apagar, then configure the other provider.
Current defaults:
- Gemini:
gemini-flash-latest - MiniMax:
MiniMax-M2.7
The app stores API keys in browser localStorage for local testing. This is convenient during development, but it is not safe for production. A production version should route AI calls through a backend or secure proxy so provider keys are not exposed in client-side code.
The AI service stores lightweight local memory in localStorage:
- Up to 24 remembered notes from phrases like
recuerda que...orno olvides que.... - Up to 20 recent user/pet exchanges.
- The user's name when detected from phrases like
me llamo...,mi nombre es..., orsoy....
This memory is sent with each prompt so the pet can answer with more continuity.
Main pet assets live in:
public/assets/gotchiThe current scene system uses:
escenario-dia.pngescenario-noche.pngdia-gameover.pngnoche-gameover.pnganimation-sequence-neutral.pnganimation-sequence-happy.pnganimation-sequence-triste.pnganimation-sequence-sueno.pnganimation-sequence-dormido.pnganimation-sequence-sucio.pnganimation-sequence-enfermo.png
Install dependencies:
pnpm installStart the local dev server:
pnpm startOpen:
http://localhost:4200/Build the app:
pnpm buildRun unit tests:
pnpm test/main pet screen/minigamesminigames hub and daily gift/minigames/reactionreaction game/revisarspritesprite comparison page
- The current visual theme is based on the warm palette from the day scene.
- Some persistence keys and internal folders still use the original
gotchiname for compatibility with existing local data. - The visible project name is
OpenGotchii; internal storage keys remain unchanged to avoid losing saved data.
MIT🗿