
Retro Pixel Pet
An 8-bit retro virtual pet game where you can draw, feed, and chat with your own pixel pet.
by ZHOU Yanxi
Description
Retro Pixel Pet is an interactive 8-bit virtual pet web game designed for retro gaming enthusiasts and anyone who enjoys casual, creative web experiences. It provides a nostalgic, pixel-art environment where users can raise a virtual companion directly in their browser. The game features a complete interactive loop: users can draw their own unique pet using a 16x16 pixel art editor or choose from built-in presets, grow carrots in the garden, exchange harvests for food and toys in the shop, and use them to feed and play with their pet. The pet responds with dynamic animations and emoji bubbles based on the user's actions. The entire project is built entirely from scratch using pure front-end web technologies. The layout and responsive design are implemented with semantic HTML5 and CSS3 (using Flexbox, Grid, and custom keyframe animations). Vanilla JavaScript is used to handle all game logic, DOM manipulation, and state management. To ensure a seamless user experience without a backend database, I utilized the browser's localStorage to save the player's drawing, inventory, and pet stats. Additionally, the game includes a bilingual system (English/Chinese) using data attributes and a pseudo-AI chat system based on keyword matching, allowing users to actually "talk" to their pet.
Desktop Homepage

Mobile Homepage

Open Graph Image
