diff options
author | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-16 20:06:41 +0200 |
---|---|---|
committer | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-16 20:06:41 +0200 |
commit | fb30f4d264863291aaa879fb6f0908d54f346b00 (patch) | |
tree | cc28dc41676988e6f83dcafb84aa207206b4a312 /light-client/src/render/misc.rs | |
parent | cceabfdfe7890ab03b0b07a445af34ec9a302366 (diff) | |
parent | 0ce6279d355d3d0311b7a3f5fbcb22a305bb0278 (diff) | |
download | hurrycurry-fb30f4d264863291aaa879fb6f0908d54f346b00.tar hurrycurry-fb30f4d264863291aaa879fb6f0908d54f346b00.tar.bz2 hurrycurry-fb30f4d264863291aaa879fb6f0908d54f346b00.tar.zst |
post merge textures
Diffstat (limited to 'light-client/src/render/misc.rs')
-rw-r--r-- | light-client/src/render/misc.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/light-client/src/render/misc.rs b/light-client/src/render/misc.rs new file mode 100644 index 00000000..9f866568 --- /dev/null +++ b/light-client/src/render/misc.rs @@ -0,0 +1,17 @@ +use super::{sprite::Sprite, AtlasLayout}; +use hurrycurry_protocol::glam::Vec2; +use sdl2::rect::Rect; + +pub struct MiscTextures { + pub player: Sprite, + pub solid: Rect, +} + +impl MiscTextures { + pub fn init(layout: &AtlasLayout) -> Self { + MiscTextures { + player: Sprite::new(*layout.get("player+a").unwrap(), Vec2::Y * 0.3, 0.5 + 0.3), + solid: *layout.get("solid+a").unwrap(), + } + } +} |