cleaning
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user