diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-16 18:45:31 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-16 18:45:31 +0200 |
commit | 41aa862bd6753e9aedbf052a1299735ea1a63c48 (patch) | |
tree | 3f392f694146cacef0478cbe1046b40648b2250c /light-client/src/game.rs | |
parent | 4064c56783bd78b96b0e79d5a7b15b1fb0d8edad (diff) | |
download | hurrycurry-41aa862bd6753e9aedbf052a1299735ea1a63c48.tar hurrycurry-41aa862bd6753e9aedbf052a1299735ea1a63c48.tar.bz2 hurrycurry-41aa862bd6753e9aedbf052a1299735ea1a63c48.tar.zst |
correct z-order finally
Diffstat (limited to 'light-client/src/game.rs')
-rw-r--r-- | light-client/src/game.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/light-client/src/game.rs b/light-client/src/game.rs index ac5c3571..2692e6fc 100644 --- a/light-client/src/game.rs +++ b/light-client/src/game.rs @@ -86,10 +86,13 @@ impl Game { Sprite::new( renderer .metadata() - .get(&format!("{name}:a")) + .get(&format!("{name}+a")) .copied() - .unwrap_or(Rect::new(0, 0, 32, 24)), - Vec2::ZERO, + .unwrap_or_else(|| { + warn!("no sprite for item {name:?}"); + Rect::new(0, 0, 32, 24) + }), + Vec2::new(0., 0.0), 0.1, ) }) |