/* Hurry Curry! - a game about cooking Copyright 2024 metamuffin This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License only. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ 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(), } } }