Crates.io | rustybuddy |
lib.rs | rustybuddy |
version | 0.1.2 |
source | src |
created_at | 2024-12-06 09:15:43.612768 |
updated_at | 2024-12-06 09:27:49.828439 |
description | A CLI-based pet simulation game written in Rust. |
homepage | https://github.com/ktshacx/rustybuddy |
repository | https://github.com/ktshacx/rustybuddy |
max_upload_size | |
id | 1474059 |
size | 33,803 |
🎉 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.
cargo
cargo install rustybuddy
Run the program from your terminal using the rustybuddy
command.
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. |
rustybuddy new --name Fluffy --kind Dragon
rustybuddy stats
rustybuddy feed
rustybuddy play
Save the pet state:
rustybuddy save
Load a saved pet:
rustybuddy load
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.
Contributions are welcome! If you’d like to improve the game, follow these steps:
git checkout -b feature/awesome-feature
git commit -m "Add awesome feature"
git push origin feature/awesome-feature
This project is licensed under the MIT License. See the LICENSE file for details.
Created with ❤️ by Krish Maity.