This commit is contained in:
2026-09-18 17:46:29 +02:00
parent 5d422ecef0
commit 11ae27cefe
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const COLS: i64 = (BOARD_WIDTH / CELL_SIZE).ceil() as i64;
pub fn spawn_background_chunk(commands: &mut Commands, id: i64) {
for row in (id * ROWS_PER_CHUNK)..(id * ROWS_PER_CHUNK + ROWS_PER_CHUNK) {
for col in 0..COLS {
let color = if (row + col as i64) % 2 == 0 {
let color = if (row + col) % 2 == 0 {
COLOR_A
} else {
COLOR_B