Additional fixes and todo plans

This commit is contained in:
2026-04-28 22:50:04 +02:00
parent ccbf7344b5
commit 37e2f36ae9
5 changed files with 29 additions and 8 deletions

View File

@@ -4,11 +4,26 @@ const rl = @import("raylib");
const c = @import("constants.zig");
const Simulator = @import("simulator.zig").Simulator;
// TODO PLANS
// Implement that roads, nodes in managers will be stored as pointers (allocated in heap)
// So when appending causes the list to relocate, nothing will have to change
// since the allocated nodes/roads will remain where they were
// Additionally add more robust error and test handling
pub fn main(init: std.process.Init) !void {
const allocator = init.gpa;
rl.setConfigFlags(.{
.msaa_4x_hint = true,
.window_highdpi = true,
});
rl.initWindow(c.WIDTH, c.HEIGHT, "Base Road Network");
defer rl.closeWindow();
const monitor = 0;
rl.setWindowMonitor(monitor);
rl.setTargetFPS(rl.getMonitorRefreshRate(monitor));
var sim: Simulator = .init(allocator);
defer sim.deinit();