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

bin+lib space_traveller

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

6 releases (breaking)

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

#857 in Game dev

Download history 16/week @ 2024-07-29

110 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–490KB