#space #model-view-controller #architecture #game-engine #command-line #cosmic #centered

bin+lib space_traveller

A simple command-line game engine based on the MVC architecture, centered around cosmic space

6 releases (breaking)

new 0.6.0 Apr 26, 2024
0.5.0 Apr 26, 2024
0.4.0 Apr 26, 2024
0.3.0 Apr 25, 2024
0.1.0 Apr 25, 2024

#406 in Game dev

Download history 350/week @ 2024-04-22

350 downloads per month

MIT license

21KB
528 lines

Space Traveller

A simple command-line game engine based on the MVC architecture, centered around cosmic space. The "reader" and "viewer" components are fully customizable as public trait objects that are injected to the main part. It may serve as a starting point for crafting epic, old-school RPGs, enriching the knowledge of the universe.

Just play

use space_traveller::{view, GameManager, StdInputReader};

fn main() {
    let std_reader = StdInputReader;
    let console_view = view::ConsoleView;
    let gm = GameManager::new(std_reader, console_view);
    let gm = gm.add_players();
    let gm = gm.start_game();
    gm.finish_game();
}


lib.rs:

Space Traveller

space_traveller is a simple command-line game engine based on the MVC architecture, centered around cosmic space. It may serve as a starting point for crafting epic, old-school RPGs, enriching the knowledge of the universe.

Dependencies

~335–475KB