From 6354d8bab4c3ce086b7ad77e4f34b92f11c57e8f Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 10 Feb 2023 00:57:57 +0100 Subject: [PATCH] reorder --- kubi/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kubi/src/main.rs b/kubi/src/main.rs index 0d4294f..0edfc40 100644 --- a/kubi/src/main.rs +++ b/kubi/src/main.rs @@ -128,14 +128,15 @@ fn after_frame_end() -> Workload { } fn main() { + //Init env_logger logging::init(); - //Create event loop - let event_loop = EventLoop::new(); - //Create a shipyard world let mut world = World::new(); + //Create event loop + let event_loop = EventLoop::new(); + //Add systems and uniques, Init and load things world.add_unique_non_send_sync(Renderer::init(&event_loop)); world.add_unique(BackgroundColor(vec3(0.5, 0.5, 1.)));