Skip to content

Commit 8d1d2ab

Browse files
Kurbledmtaub
authored andcommitted
Fixed tile positioning
1 parent 1506b55 commit 8d1d2ab

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/map.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ impl Map {
179179
);
180180

181181
let start = Vec2::new(
182-
center.x() - tile_width / 2.0,
183-
center.y() - tile_height / 2.0,
182+
center.x(),
183+
center.y() - tile_height,
184184
);
185185

186186
let end = Vec2::new(
187-
center.x() + tile_width / 2.0,
188-
center.y() + tile_height / 2.0,
187+
center.x() + tile_width,
188+
center.y(),
189189
);
190190

191191
(start.x(), end.x(), start.y(), end.y())
@@ -199,12 +199,12 @@ impl Map {
199199

200200
let start = Vec2::new(
201201
center.x() - tile_width / 2.0,
202-
center.y() - tile_height / 2.0,
202+
center.y() - tile_height,
203203
);
204204

205205
let end = Vec2::new(
206206
center.x() + tile_width / 2.0,
207-
center.y() + tile_height / 2.0,
207+
center.y(),
208208
);
209209

210210
(start.x(), end.x(), start.y(), end.y())

0 commit comments

Comments
 (0)