bevy_fighter 0.1.0

A mildly opinionated micro-engine for building 2D fighting games with bevy
Documentation
use bevy_fighter::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_event::<MotionEvent>()
        .add_startup_system(setup)
        .add_system_set(
          SystemSet::new()
            .with_run_criteria(FixedTimestep::step(0.01667))
            .with_system(write_motion_inputs.label(FighterSystemLabels::InputWrite))
            .with_system(read_motion_inputs.after(FighterSystemLabels::InputWrite))
        )
        .run();
}


fn setup(
    mut commands: Commands,
  ) {
  
  commands
    .spawn()
    .insert(InputBuffer::new(1));
  commands
    .spawn_bundle(UiCameraBundle::default());
}