summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 8de52c0..2679ac4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,5 +4,10 @@ mod graphics;
fn main() {
game::start();
- graphics::start();
+
+ let graphics_thread = std::thread::spawn(move || {
+ graphics::start();
+ });
+
+ graphics_thread.join().unwrap();
}