macro_rules! your_game {
($window_configuration:expr, $setup:ident, $update:ident) => { ... };
}Expand description
ยงThe your_game! macro.
Macro created to facilitate the game programming using the engine.
If you do something like:
use lotus_engine::*;
your_game!(WindowConfiguration::default(), setup, update);
fn setup(context: &mut Context) {}
fn update(context: &mut Context) {}You will already have a game running!