diff options
author | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-16 23:47:51 +0200 |
---|---|---|
committer | BigBrotherNii <nicochr1004@gmail.com> | 2024-07-16 23:47:51 +0200 |
commit | cd679169f8e049b3f3ce890c97d62fa72a4e4eb5 (patch) | |
tree | 4efaf40f3c818d79be881f81b7d8fa254861731d /pixel-client/src/render/misc.rs | |
parent | 2f9e2758199ff5148d7f90478be45aa122d6c860 (diff) | |
parent | df418c0d3fec83fc1cbe0dabc6d4b9dfbdbcbabb (diff) | |
download | hurrycurry-cd679169f8e049b3f3ce890c97d62fa72a4e4eb5.tar hurrycurry-cd679169f8e049b3f3ce890c97d62fa72a4e4eb5.tar.bz2 hurrycurry-cd679169f8e049b3f3ce890c97d62fa72a4e4eb5.tar.zst |
trying to merch qwq
Diffstat (limited to 'pixel-client/src/render/misc.rs')
-rw-r--r-- | pixel-client/src/render/misc.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pixel-client/src/render/misc.rs b/pixel-client/src/render/misc.rs new file mode 100644 index 00000000..9f866568 --- /dev/null +++ b/pixel-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(), + } + } +} |