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/render/sprite.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/render/sprite.rs')
-rw-r--r-- | light-client/src/render/sprite.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/light-client/src/render/sprite.rs b/light-client/src/render/sprite.rs index c19f8392..b45e85b3 100644 --- a/light-client/src/render/sprite.rs +++ b/light-client/src/render/sprite.rs @@ -22,7 +22,7 @@ impl Sprite { } } pub fn new_tile(src: Rect) -> Self { - Self::new(src, Vec2::new(0.5, 1.0), 0.) + Self::new(src, Vec2::new(0.5, 1.0), 0.5) } pub fn at(&self, pos: Vec2) -> SpriteDraw { SpriteDraw { |