off by one errors baby

main
Zynh Ludwig 2024-08-20 11:54:11 -07:00
parent 7706a9f3ef
commit 46ebd36a9c
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ fn setup(
let circle_mesh = Mesh2dHandle(meshes.add(Rectangle::new(TILE_SIZE, TILE_SIZE))); let circle_mesh = Mesh2dHandle(meshes.add(Rectangle::new(TILE_SIZE, TILE_SIZE)));
let color = Color::from(tailwind::NEUTRAL_700); let color = Color::from(tailwind::NEUTRAL_700);
for i in 0..=TILES { for i in 0..TILES {
for j in 0..=TILES { for j in 0..TILES {
let tile_x = i as f32 * TILE_SPACE - CENTER; let tile_x = i as f32 * TILE_SPACE - CENTER;
let tile_y = j as f32 * TILE_SPACE - CENTER; let tile_y = j as f32 * TILE_SPACE - CENTER;
commands.spawn(MaterialMesh2dBundle { commands.spawn(MaterialMesh2dBundle {