cursor ui

This commit is contained in:
StephenAdamson
2024-12-13 23:07:08 +00:00
parent 89567d4ce7
commit 7363ec9d39
7 changed files with 58 additions and 38 deletions
+3 -4
View File
@@ -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,
);