This commit is contained in:
Edgar 2023-09-07 14:45:29 +02:00
parent df7f915f1b
commit 83dc864d3a
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387
3 changed files with 259 additions and 288 deletions

539
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
name = "ddnet-map-gen" name = "ddnet-map-gen"
authors = ["Edgar <git@edgarluque.com>"] authors = ["Edgar <git@edgarluque.com>"]
description = "A DDraceNetwork map generator." description = "A DDraceNetwork map generator."
version = "0.2.3" version = "0.2.4"
edition = "2021" edition = "2021"
license = "AGPL-3.0-only" license = "AGPL-3.0-only"
repository = "https://github.com/edg-l/ddnet-map-gen" repository = "https://github.com/edg-l/ddnet-map-gen"
@ -17,7 +17,7 @@ color-eyre = "0.6.2"
eyre = "0.6.8" eyre = "0.6.8"
fixed = "1.23.0" fixed = "1.23.0"
irrgarten = "0.1.1" irrgarten = "0.1.1"
itertools = "0.10.5" itertools = "0.11"
ndarray = "0.15.6" ndarray = "0.15.6"
owo-colors = "3.5.0" owo-colors = "3.5.0"
rand = "0.8.5" rand = "0.8.5"

View file

@ -33,10 +33,10 @@ struct Cli {
enum Commands { enum Commands {
/// Generate a map for fly techniques. /// Generate a map for fly techniques.
Fly { Fly {
#[arg(long, default_value_t = 3)] #[arg(long, default_value_t = 12)]
max_fly_width: u16, max_fly_width: u16,
/// The output map file. /// The output map file.
#[arg(long, default_value_t = 12)] #[arg(long, default_value_t = 3)]
min_fly_width: u16, min_fly_width: u16,
}, },
/// Generate a maze-like map. /// Generate a maze-like map.