From d125ad60f7266c6a7b3fd5cf930a5aff53b03464 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 26 Jul 2025 14:32:10 +0300 Subject: a --- src/main.zig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 6a50cd1..6906fe9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -10,7 +10,7 @@ const world_width = cells_width * cell_size; const world_height = cells_height * cell_size; const bg_color = rl.Color.init(0x20, 0x2e, 0x37, 0xFF); -const debug = true; +const debug = false; var screenWidth: i32 = 1280; var screenHeight: i32 = 720; @@ -634,11 +634,16 @@ const ScreenBattle = struct { } else if (self.wave.get(mx, my) == .none and debug) { self.wave.set(mx, my, .socket); } + + // if (self.wave.get(mx, my) == .socket) { + // self.wave.set(mx, my, .cpu); + // } + } else if (rl.isMouseButtonPressed(rl.MouseButton.right) and debug) { self.wave.set(mx, my, .none); } - if (rl.isKeyPressed(rl.KeyboardKey.s)) { + if (rl.isKeyPressed(rl.KeyboardKey.s) and debug) { const f = std.io.getStdErr().writer(); std.zon.stringify.serializeArbitraryDepth(self.wave.map, .{ .whitespace = false, -- cgit v1.3.1