Your little friend
Project description
VVPET DOCUMENTATION
vvpet is your personal pet, kinda like tamagochi
How to run
The game itself is started using the game() function, hidden inside vvpet_main
Therefore to run, you need the following:
from vvpet import vvpet_main
vvpet_main.game()
(or name it as whatever alias you want, just run the function)
Basic usage
As of version 0.5.0, the game features a save/load system that creates new files in the same directory from which the game runs, letting you save your games. Do not edit nor delete the files if you don't want to lose the data (duh)
How the game functions
Commands
The game has 2 types of commands, Utility and Action.
Utility commands are used to track / display information about your pet, and resources used in-game
Action commands interact directly with the "world", some causing ticks to happen
Tick is a unit of time, during which your pet loses some of their resources
The list of available commands is stated below
The main gameloop revolves around getting money in order to buy food and enrichment for your pet
Resources
You have several resources to keep track of, the main being your money. You start each game with a 100
The next few are pet resources.
hunger,
thirst,
and fun all function on a similiar basis, being replenished directly through food, or enrichment.
Depletion of fun lowers hunger and thirst by 1 each tick, while hunger and thirst deplete health
This means that your pet can survive without
fun, if you have enough food and drinks
health starts at 10, and gets lowered when either of the 3 basic resources are depleted. Running out of health means game over
mood is the final "resource", deriving from the mentioned 4, but only serving as a general look into the
wellbeing of your pet
In-game commands
There is a
helpcommand in-game, this list is just more comprehensive
Utility
stats is the most basic and most frequented command, displaying your pet's resources
balance shows your current money balance
inventory lists your inventory contents
mood displays the overall mood of your pet
save and load do exacty what they sound like they do. You can save/load mid-game
Actions
The following three commands do not cause a
tickto happen
shop is the main place to spend your money. Bought items go directly into your inventory.
feed enables you to feed your pet, from your inventory.
pet is the simplest and cheapest (free) way to gain fun
--
work is the boring way to get money, gaining from 10 to 20 money
casino, or gamble is the fun way to get money. Currently, there are 2 games to choose from
-
roulette, marked in-game as1is the classic game, enabling you to bet either on a color or number. Color nets youbet * 2, where Number nets youbet * 4 -
blackjack, marked in-game as2is the game granting you the illusion of manipulating your chances. After betting, you get a chance to eitherhit, orpass. Your goal is to get as close to21as possible. Afterpass, the dealer makes his moves. Whoever overshoots, or is further away from21, loses. It nets youbet * 2
end, or exit is the safe way to exit your game. You get a choice to save your game before the code exits.
Admintools
admin.tick is a command letting you force a tick to happen
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vvpet-0.5.2.tar.gz.
File metadata
- Download URL: vvpet-0.5.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc8afaf00ed9a78a0b41faa37ca4e0bf492a73c65328697fba541129d0e297ac
|
|
| MD5 |
a6b005292b63b3549aab7c4df065ad71
|
|
| BLAKE2b-256 |
2c7055522941aecb71493e0f9200aeaaf31837ab0688bb74e9cf3d6ff00ce0d5
|
File details
Details for the file vvpet-0.5.2-py3-none-any.whl.
File metadata
- Download URL: vvpet-0.5.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08bbae0ffb391f787c790c0507aa2a85a0fa52cb0800cb39080f49ab7a9b7261
|
|
| MD5 |
c975db776324612f3e13eabacd7b0d0e
|
|
| BLAKE2b-256 |
ce7196799ab9f7fa37b4e362fb11a4a5477d94fcc6395571dfa870f719d3b69e
|