aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
blob: 63cc2dbf899e378046337abf76bd86aefd371fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}