diff options
Diffstat (limited to 'games/rstnode/rst-client/src/window.rs')
-rw-r--r-- | games/rstnode/rst-client/src/window.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/games/rstnode/rst-client/src/window.rs b/games/rstnode/rst-client/src/window.rs new file mode 100644 index 000000000000..ad58c38e0ffb --- /dev/null +++ b/games/rstnode/rst-client/src/window.rs @@ -0,0 +1,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) +} |