cursor ui
This commit is contained in:
+3
-4
@@ -1,11 +1,10 @@
|
||||
use crate::citizen::Citizen;
|
||||
use crate::item::{Item, ItemBundle};
|
||||
use crate::tiles::TilePrefab;
|
||||
use crate::constants::*;
|
||||
use bevy::prelude::*;
|
||||
use rand::prelude::*;
|
||||
|
||||
pub const PIXEL_RATIO: f32 = 4.0;
|
||||
|
||||
pub fn setup_level(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
setup_tilemap(&mut commands, &asset_server);
|
||||
|
||||
@@ -26,8 +25,8 @@ fn setup_tilemap(commands: &mut Commands, asset_server: &Res<AssetServer>) {
|
||||
for y in -25..25 {
|
||||
for z in 0..4 {
|
||||
let position = Vec3::new(
|
||||
x as f32 * 16. * PIXEL_RATIO,
|
||||
y as f32 * 16. * PIXEL_RATIO,
|
||||
x as f32 * TILE_SIZE,
|
||||
y as f32 * TILE_SIZE,
|
||||
-z as f32,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user