No description
Find a file
2021-05-27 12:04:58 -04:00
src make more fields public. 2021-05-27 12:04:48 -04:00
.gitignore create crate. 2021-04-11 12:50:26 -04:00
Cargo.toml bump version. 2021-05-27 12:04:58 -04:00
LICENSE update readme. 2021-04-11 12:54:20 -04:00
README.md simplify readme example. 2021-04-11 13:11:21 -04:00

Game Engine Core

Game Engine Core

Support an Open Source Developer! ♥️
Become a patron

Read the documentation.

Features

  • Create and store a stack-based state machine.
  • Manually update individual game frames.
  • Automatically run a game loop.
  • Game engine agnostic.
  • Does not rely on ECS.

Usage

Add the following to you Cargo.toml file:

game_engine_core = "*"

Use it like so:

use game_engine_core::*;

struct MyState;
impl State<i32> for MyState {
    fn update(&mut self, state_data: &mut i32) -> StateTransition<i32> {
        *state_data += 1;
        StateTransition::Quit
    }
}

fn main() {
    Engine::new(MyState, 0, |_, _| {}, 1000.0)
        .engine_loop();
}

Maintainer Information

  • Maintainer: Jojolepro
  • Contact: jojolepro [at] jojolepro [dot] com
  • Website: jojolepro.com
  • Patreon: patreon