5 unstable releases
0.4.2 | Sep 28, 2023 |
---|---|
0.4.1 | Sep 28, 2023 |
0.4.0 | Sep 28, 2023 |
0.3.0 | Sep 28, 2023 |
0.2.2 | Sep 23, 2023 |
#777 in Game dev
33 downloads per month
Used in overworld_demo_typegame
63KB
1K
SLoC
overworld
A library of incremental game / management related reusable components.
Installation
There are several ways to install Overworld:
From the metapackage
cargo add overworld
- Configure the features you want
- the
default
are a sane set all
for all features- or some of the virtual features likes
rpg
,management
,incremental
for packages used often in those genres of games - specific features for only a subset, such as:
dice
,progression
- the
- Time to start using it!
By specific components
You can cargo add overworld_COMPONENTNAME
(cargo add overworld_progression
) if you just want a single crate
(in some cases, they may depend on other crates in this repository.)
Examples
use overworld::roll::Die;
// overworld_dice::roll:Die; if not using metapackage
fn main() {
let d6 = Die::new(6);
println!("You rolled a {}", d6.roll());
// You rolled a 6
}
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
License
Licensed under the following licenses at your option:
- Apache License, Version 2.0 <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>
- MIT license <LICENSE-MIT or https://opensource.org/licenses/MIT>
Files in the project may not be copied, modified, or distributed except according to those terms.
Dependencies
~0.6–1.3MB
~27K SLoC