blob: 9c6e5e22c8cefd3d4c8c50ea9f3bb568c2da5908 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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.displayStatus(&Entity{});
var action = Action.illegal;
while (action != Action.exit) {
action = d.processInput();
}
d.deinit();
return 0;
}
|