off by one errors baby
parent
7706a9f3ef
commit
46ebd36a9c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue