All Projects → Zaechus → kingslayer

Zaechus / kingslayer

Licence: MIT license
A text-based adventure written in Rust

Programming Languages

rust
11053 projects
Nix
1067 projects

Projects that are alternatives of or similar to kingslayer

gamebookengine
Gamebook Engine is an open source iOS app for creating and playing gamebooks, a type of interactive fiction where the player gets to make decisions that influence the story.
Stars: ✭ 42 (+50%)
Mutual labels:  interactive-fiction, adventure
Cargo Deny
❌ Cargo plugin for linting your dependencies 🦀
Stars: ✭ 533 (+1803.57%)
Mutual labels:  crates, cargo
cargo-trim
Binary application to clean up .cargo/registry & .cargo/git cache
Stars: ✭ 15 (-46.43%)
Mutual labels:  crates, cargo
cargo-esr
Extended Search & Ranking tool for crates.
Stars: ✭ 23 (-17.86%)
Mutual labels:  crates, cargo
Alexandrie
An alternative crate registry, implemented in Rust.
Stars: ✭ 251 (+796.43%)
Mutual labels:  crates, cargo
dankdomain
🏰 Ɗaɳƙ Ɗoɱaiɳ :: the return of Hack & Slash
Stars: ✭ 25 (-10.71%)
Mutual labels:  dungeon, dungeon-crawler-game
naersk
Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly. [maintainer: @Patryk27]
Stars: ✭ 440 (+1471.43%)
Mutual labels:  crates, cargo
Commandline-Games-hacktoberfest
A repository to share command line games. An opportunity to start and learn about open source code contributions flow.
Stars: ✭ 16 (-42.86%)
Mutual labels:  text-based, text-based-game
Naersk
Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly.
Stars: ✭ 193 (+589.29%)
Mutual labels:  crates, cargo
Meuse
A private Cargo crate registry, for Rust
Stars: ✭ 173 (+517.86%)
Mutual labels:  crates, cargo
Semantic Rs
🚀 Automatic crate publishing done right
Stars: ✭ 162 (+478.57%)
Mutual labels:  crates, cargo
cargo-limit
Cargo with less noise: warnings are skipped until errors are fixed, Neovim integration, etc.
Stars: ✭ 105 (+275%)
Mutual labels:  crates, cargo
zorkzero
Zork Zero: The Revenge of Megaboz, by Steve Meretzky of Infocom (1988)
Stars: ✭ 114 (+307.14%)
Mutual labels:  interactive-fiction, adventure
crates
crates is an extension aims to help people to manage their dependencies for rust (crates.io & TOML).
Stars: ✭ 156 (+457.14%)
Mutual labels:  crates, cargo
nexus-repository-cargo
Nexus Repository Cargo Format
Stars: ✭ 33 (+17.86%)
Mutual labels:  cargo
klipse-repl
Beginners friendly Clojure REPL
Stars: ✭ 44 (+57.14%)
Mutual labels:  interactive
augmath
Interactive Computer Algebra System. Augmenting how we *do* mathematics using computers
Stars: ✭ 41 (+46.43%)
Mutual labels:  interactive
npm-interactive-scripts
⚡️Fast Interactive CLI for npm scripts
Stars: ✭ 17 (-39.29%)
Mutual labels:  interactive
version-compare
↔️ Rust library to easily compare version strings. Mirror from https://gitlab.com/timvisee/version-compare
Stars: ✭ 32 (+14.29%)
Mutual labels:  crates
lumo
A high performance WebGL tile rendering library
Stars: ✭ 58 (+107.14%)
Mutual labels:  interactive

👑 Kingslayer ⚔️

CI Crates.io Kingslayer documentation

Kingslayer is a text-based dungeon crawler written in Rust. It is a continuation of thekinggame.

Playing the game

You can play an online WASM version here: zaechus.github.io/kingslayer-web

You can also install Kingslayer:

cargo install kingslayer
kingslayer

or clone the project and run it:

cargo run --release

Creating and Running your own World

Worlds can be created with RON and Rust helper functions. Running the world on the command line looks like this:

use kingslayer::Cli;

fn main() {
    let cli = Cli::from_file("worlds/world.ron");

    cli.start();
}

or the loop can be managed manually like this:

use kingslayer::Cli;

fn main() {
    let cli = Cli::from_file("worlds/world.ron");

    println!("{}", cli.ask("l"));
    loop {
        let s = cli.ask(&Cli::prompt());
        println!("{}", s);
        if s.contains("Farewell.") {
            break;
        }
    }
}

This method allows for other forms of input and output such as within a website. The content for the world can also be passed as a raw string with Cli::from_ron_str.

Dependencies

  • Rust/Cargo ^1.59.0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].