Digital Dog is a fun and interactive virtual pet web app where you can adopt, name, and take care of your own digital dog. It tracks your pet's hunger, happiness, energy, and health, and lets you interact with it through feeding, playing, and putting it to sleep. If your dog’s stats drop too low, it “dies,” but you can revive it and start fresh!
- Adopt and name your digital dog.
- Track stats: Hunger, Happiness, Energy, Health.
- Perform actions: Feed, Play, Sleep, Revive.
- Dynamic updates in real-time based on your actions.
- Nostalgic and engaging Tamagotchi-style gameplay.
- HTML – structure of the app
- CSS – styling and responsive design
- JavaScript – game logic, DOM manipulation, and state management
- Clone the repository:
git clone https://github.com/yourusername/digital-dog.git
Open index.html in your browser.
Start interacting with your digital dog!
💡 What I Learned Managing game state with JavaScript objects and variables..
Dynamic DOM updates to reflect changes in real-time.
Designing interactive user experiences with simple mechanics.
Balancing fun and functionality in a small project.
📌 Future Improvements Add animations and sound effects for more engagement..
Save pet stats in localStorage to persist between sessions.
Mobile-friendly responsive design for better playability.
Add multiple pets and different breeds.
📝 License This project is open source. Feel free to use and modify it for learning purposes!!