From 46ebd36a9c32899b0cc6bc78b59466624d83f62a Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Tue, 20 Aug 2024 11:54:11 -0700 Subject: [PATCH] off by one errors baby --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 26e5506..a420d7f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,8 +79,8 @@ fn setup( let circle_mesh = Mesh2dHandle(meshes.add(Rectangle::new(TILE_SIZE, TILE_SIZE))); let color = Color::from(tailwind::NEUTRAL_700); - for i in 0..=TILES { - for j in 0..=TILES { + for i in 0..TILES { + for j in 0..TILES { let tile_x = i as f32 * TILE_SPACE - CENTER; let tile_y = j as f32 * TILE_SPACE - CENTER; commands.spawn(MaterialMesh2dBundle {