Fix not being sorted when created

This commit is contained in:
Daniel Flanagan 2024-07-24 16:23:57 -05:00
parent 6775527467
commit 33d893ace9
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
# bevy = { version = "0.13.2", features = ["wav"] }
bevy = { version = "0.13.2", features = ["wayland", "wav"] } bevy = { version = "0.13.2", features = ["wayland", "wav"] }
# bevy = { version = "0.12.1", features = ["wayland", "file_watcher", "trace"] } # bevy = { version = "0.12.1", features = ["wayland", "file_watcher", "trace"] }

View file

@ -64,7 +64,7 @@ fn controls(
.and_then(|cursor| camera.viewport_to_world(camera_transform, cursor)) .and_then(|cursor| camera.viewport_to_world(camera_transform, cursor))
.map(|ray| ray.origin.truncate()) .map(|ray| ray.origin.truncate())
{ {
let spos = world_position.extend(0.); let spos = world_position.extend(-world_position.y);
let statue_texture = asset_server.load("img/Props.png").clone(); let statue_texture = asset_server.load("img/Props.png").clone();
commands.spawn(( commands.spawn((
Statue, Statue,