Minecraft-based player meshes

This commit is contained in:
Tony Bark 2025-02-18 17:28:57 -05:00
parent 99c122a138
commit 9774f6de7f
15 changed files with 432 additions and 20 deletions

View file

@ -5,9 +5,12 @@ pub fn main() !void {
const address = net.Address.resolveIp("0.0.0.0", 1337) catch {
@panic("Failed to bind to address.");
};
var server = address.listen(net.Address.ListenOptions{}) catch unreachable;
std.debug.print("Listening to clients.\n", .{});
defer server.deinit();
while (true) {
const conn = server.accept() catch {
std.debug.print("Connection attempt failed.", .{});