fantasy-craft 0.0.2

A 2D / 2.5D game engine built on top of Macroquad and Hecs for the Foxvoid Ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{audio::system::audio_system, prelude::{GameState, Plugin, Stage, System}};

pub struct AudioPlugin;

impl Plugin for AudioPlugin {
    fn build(&self, app: &mut crate::prelude::App) {
        app.add_system(Stage::PostUpdate, System::new(
            audio_system,
            vec![GameState::Playing, GameState::Menu]
        ));
    }
}