diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-26 14:32:10 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-26 14:32:10 +0300 |
| commit | d125ad60f7266c6a7b3fd5cf930a5aff53b03464 (patch) | |
| tree | d10ad7c5ecc7c9c74e98edc00b72ca71b41ac3b9 | |
| parent | 04b06ca7ccaf978b9faa4e24e5ead779d114a434 (diff) | |
a
| -rw-r--r-- | src/main.zig | 9 |
1 files 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, |
