intfic 0.3.8

An interactive fiction framework written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use intfic::game_state::GameState;

fn main() {
    // Create an empty gamestate with the title "Interactive Fiction Title"
    let mut game = GameState::new("Interactive Fiction Title");

    // Set the game progress to indicate the story file and block we want to start with, then starting the game.
    game.set_progress("example_1.txt", "start");
    game.start();

    // Print out the GameState when the game is over. This may not run if the player exits early!
    game.print_debug();
}