Fix map size width
This commit is contained in:
parent
6a2c77404b
commit
7b56c52fff
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user