summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
Diffstat (limited to 'game')
-rw-r--r--game/Cargo.toml11
-rw-r--r--game/src/main.rs10
2 files changed, 21 insertions, 0 deletions
diff --git a/game/Cargo.toml b/game/Cargo.toml
new file mode 100644
index 0000000..01a8ec9
--- /dev/null
+++ b/game/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "game"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
+dungeon = { path = "../dungeon" }
+graphics = { path = "../graphics" }
+
+[lints]
+workspace = true
diff --git a/game/src/main.rs b/game/src/main.rs
new file mode 100644
index 0000000..252830a
--- /dev/null
+++ b/game/src/main.rs
@@ -0,0 +1,10 @@
+use dungeon::*;
+use graphics::*;
+
+fn main() {
+ let mut window = Window::new(720, 480, "game");
+ let dungeon = Dungeon::new();
+ while window.is_open() {
+ window.draw(&dungeon);
+ }
+}