#Jammars, a rust based (incomplete) Markov Jr implementation!

9 messages · Page 1 of 1 (latest)

woeful marlin
#

Introducing jammars! https://github.com/DEMIURGE-studio/jammars A rust-based partial MarkovJr implementation that uses grammars to do procedural generation. Originally I made a (much worse) MarkovJr impl for my game DEMIURGE, but my collaborator has ripped it out and is turning it into a crate! This is both of our first times releasing a crate so please let us know if there's anything we can do better. A readme is planned. Here are some example algorithms:

... and here's a video of jammars generating the map in my bevy game:

GitHub

grammars or something. Contribute to DEMIURGE-studio/jammars development by creating an account on GitHub.

#

Valley (used in DEMIURGE)
https://jamu.moe/CYNNqn2crabw.mp4

Here's the code for the valley generation rules:

let mut rules = sequence![
    one![;*B* > *A*],
    one![;BA > UU, ;AB > GG],
    one![;UA > UU, ;AG > GG],
    one![U / G > B / B],
    one![G > U],
    one![BU / UB > BB / BB],
    all![B / U > B / B],
    all![B / U > B / B],
    all![*B* / BUB > *** / *B*],
];
finite mulch
#

Cool as fuck