Tamalama is an interactive desktop virtual pet simulator built with C# and WPF. Inspired by the classic Tamagotchi, this project features a dynamic pet growth system, life-status management, and a variety of arcade mini-games to earn in-game currency.
- Dynamic Lifecycle: Start your journey with an egg and watch your pet hatch and grow into a baby llama.
- Vital Stats Management: Monitor and maintain five core attributes:
- 🍖 Hunger: Feed your pet to keep it full.
- 😊 Happiness: Play games to keep your pet's spirits high.
- ❤️ Health: Administer medicine when your pet falls ill.
- 🧼 Cleanliness: Keep your pet and its environment tidy.
- 💤 Sleep: Let your pet rest to recover energy and health.
- Economy System: Earn money through mini-games to buy essential items in the shop.
- Customizable Experience: Adjustable difficulty levels (Easy, Medium, Hard) that affect how fast stats deplete.
The "Mini-Game Hub" allows you to earn coins through five different activities:
- 🦖 Dino Game: A classic side-scrolling runner. Jump over obstacles and survive as long as possible.
- 🐍 Snake: The legendary arcade game. Eat food to grow longer, but don't hit the walls or yourself!
- 🌿 Plant Game: A gardening simulator. Help a seed grow into a beautiful flower through various growth stages.
- 🦙 Clean Llama: An interactive cleaning task where you manually scrub spots off your pet.
- 👿 Devil Evil Game: A hardcore platformer featuring "Weird Modes" like inverted controls, gravity shifts, and portals.
- Language: C#
- Framework: .NET Framework 4.8
- UI Technology: WPF (XAML)
- Architecture:
Pet.cs: Contains the core logic for stat degradation and recovery.GameSettings.cs: Implements the Singleton pattern andINotifyPropertyChangedfor global application settings.DispatcherTimer: Used for real-time game loops and status updates.
- Requirements: Visual Studio 2022 (with ".NET desktop development" workload).
- Clone the Repository:
git clone [https://github.com/maxos-pl/tamalama.git](https://github.com/yourusername/tamalama.git)
- Open Solution: Launch
tamagoci.slnin Visual Studio. - Run: Press
F5to build and start the application.- Note: In
DEBUGmode, the hatching process is significantly faster for testing purposes.
- Note: In
MainWindow.xaml— Main menu and navigation.GameWindow.xaml— Primary pet interaction screen.MiniGamesWindow.xaml— Gateway to the arcade modules.Pet.cs— Business logic for the pet's behavior.Images/— Graphic assets including pet states (egg, baby, sick, sad).
Developed as an educational project. Feel free to use and modify for learning purposes!
Created in 2025. Versions: v1.0