1 unstable release
0.1.2 | Dec 6, 2024 |
---|---|
0.1.1 |
|
0.1.0 |
|
#64 in Games
358 downloads per month
13KB
217 lines
RustyBuddy
🎉 RustyBuddy is a fun and interactive CLI-based pet simulation game written in Rust! Create your virtual pet, take care of it, and watch it grow. Feed, play, and let your buddy sleep while keeping track of its stats and mood.
Features
- 🐾 Create Your Buddy: Choose a name and type (e.g., Cat, Dog, Dragon) for your virtual pet.
- 🎭 Dynamic Moods: Your pet's mood changes based on hunger, happiness, and energy.
- 🍖 Feed Your Pet: Satisfy your pet’s hunger with food.
- 🎾 Play With Your Pet: Increase your pet's happiness by playing games.
- 💤 Let Your Pet Sleep: Restore your pet's energy with rest.
- 🕒 Aging System: Your pet grows older over time.
- 🎨 ASCII Animations: Cute animations for actions like eating, playing, and sleeping.
- 🏆 Achievements: Celebrate milestones like birthdays and achievements.
- 💾 Save and Load: Save your pet’s state and continue later.
Installation
Prerequisites
- Install Rust if you haven't already.
Install via cargo
cargo install rustybuddy
Usage
Run the program from your terminal using the rustybuddy
command.
Commands
Command | Description |
---|---|
rustybuddy new --name <NAME> --kind <KIND> |
Create a new pet with a name and type (e.g., --name Tommy --kind Cat ). |
rustybuddy stats |
View your pet's stats (hunger, happiness, energy, health, age, and mood). |
rustybuddy feed |
Feed your pet to reduce hunger. |
rustybuddy play |
Play with your pet to increase happiness. |
rustybuddy sleep |
Let your pet sleep to restore energy. |
rustybuddy save |
Save your pet's current state. |
rustybuddy load |
Load a previously saved pet. |
Examples
Create a New Pet
rustybuddy new --name Fluffy --kind Dragon
View Stats
rustybuddy stats
Feed Your Pet
rustybuddy feed
Play with Your Pet
rustybuddy play
Save and Load
Save the pet state:
rustybuddy save
Load a saved pet:
rustybuddy load
How It Works
RustyBuddy uses a JSON file (pet.json
) to save your pet's state. The pet's stats (hunger, happiness, energy, health, and age) decay over time, so regular care is necessary to keep your buddy happy and healthy.
Contributing
Contributions are welcome! If you’d like to improve the game, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/awesome-feature
- Commit your changes:
git commit -m "Add awesome feature"
- Push your branch:
git push origin feature/awesome-feature
- Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Future Enhancements
- 🐉 Pet Evolution: Unlock new appearances and abilities as your pet grows.
- 🌎 Multiplayer Mode: Let pets interact with each other.
- 📱 Mobile Version: Build a mobile app for RustyBuddy.
- 🎮 Mini-Games: Add fun mini-games to play with your pet.
Author
Created with ❤️ by Krish Maity.
Dependencies
~4–16MB
~147K SLoC