blob: ad58c38e0ffb1a2f038e368a8704fbf408a7dff7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//! Basic window setup code
use crate::{ctx, state::ClientState, GameSettings};
use ggez::event;
/// Start the main event loop with game settings and state
pub fn run(settings: &GameSettings, state: ClientState) -> ! {
let (ctx, eloop) = ctx::build(settings).build().unwrap();
event::run(ctx, eloop, state)
}
|