Fix map size width

This commit is contained in:
Daniel Lynn 2021-07-17 16:24:49 -05:00
parent 6a2c77404b
commit 7b56c52fff
Signed by: daniel
GPG Key ID: 28496A140E180A9D

View File

@ -13,7 +13,7 @@ pub fn setup(
let grass_material = materials.add(asset_server.load("grass.png").into());
let tile_size = Vec2::new(TILE_SIZE, TILE_SIZE);
let sprite = Sprite::new(tile_size);
let map_size = Vec2::new(SCREEN_HEIGHT, SCREEN_HEIGHT);
let map_size = Vec2::new(SCREEN_WIDTH, SCREEN_HEIGHT);
let half_x = (map_size.x / 2.0) as i32;
let half_y = (map_size.y / 2.0) as i32;