aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
new file mode 100644
index 0000000..63cc2db
--- /dev/null
+++ b/src/main.zig
@@ -0,0 +1,21 @@
+const std = @import("std");
+const Entity = @import("ecs/entity.zig").Entity;
+const Display = @import("frontend/ncurses.zig").Display;
+const Action = @import("actions.zig").Action;
+
+pub fn main() u8 {
+ var d = Display.init() catch |err| {
+ std.log.err("{}", .{err});
+ return 1;
+ };
+ d.displayMessage("Initialized", .{});
+ d.displayInstructions();
+ d.displayStatus(&Entity{});
+ var action = Action.illegal;
+ while (action != Action.exit) {
+ action = d.processInput();
+ }
+ d.deinit();
+
+ return 0;
+}