1 unstable release
| 0.1.0 | Jun 13, 2025 |
|---|
#8 in #membership
Used in gdrust_kit
20KB
383 lines
gdrust_utils
Utility tools for Rust Godot development.
Features
Simple fuzzy system
calcualte from a fuzzy input type (Game difficulty -> f32 from 0.0 to 10.0) to an exact output type (Game parameters):
--- Difficulty Level: 6.0 ---
Normal membership: 0.50
Hard membership: 0.50
Resulting settings:
EnemyHealth: 1.200
EnemyDamage: 1.150
EnemySpeed: 1.100
CheckpointFrequency: 0.450
ResourceScarcity: 0.650
Usage
Fuzzy system
Run example with:
cargo run --example fuzzy
Or from gdrust_kit crate with:
cargo run --example fuzzy -p gdrust_utils
Installation
# Via gdrust_kit
gdrust_kit = { version = "0.1.0", features = ["utils"] }
# Or standalone
gdrust_utils = "0.1.0"