summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-26 11:50:47 +0300
committerKyren223 <Kyren223@proton.me>2025-07-26 11:50:47 +0300
commitc9b40270697655bb475935ee38fbc8a9a8f284ab (patch)
treed42bb18f07fbcea468eef08df7b676339f6aaee7 /src
parentc4b036533d65eb1c76c5b75e0364b816eac7f796 (diff)
Removed color
Diffstat (limited to 'src')
-rw-r--r--src/main.zig12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main.zig b/src/main.zig
index 8d211b9..b9dd009 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -218,7 +218,6 @@ const Cell = union(enum) {
cpu: Cpu,
ai,
lane,
- color: rl.Color,
fn isLaneConnected(self: Cell) bool {
return switch (self) {
@@ -305,8 +304,6 @@ const Wave = struct {
for (1..cells_width - 1) |x| {
const isEven = (y + x) % 2 == 0;
if (isEven) {
- wave.map[y][x] = .{ .color = rl.Color.blue };
- } else {
wave.map[y][x] = .socket;
}
}
@@ -650,15 +647,6 @@ const ScreenBattle = struct {
const texture = game.texture_map.get(.ai).?;
rl.drawTexture(texture, @intCast(x * cell_size), @intCast(y * cell_size), rl.Color.white);
},
- .color => |color| {
- rl.drawRectangle(
- @intCast(x * cell_size),
- @intCast(y * cell_size),
- cell_size,
- cell_size,
- color,
- );
- },
}
}
};