From 5cad8fad7c8e8b4358c9b0290c228ac9fac164f5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 16 Jul 2024 12:10:12 +0200 Subject: render players --- light-client/src/tilemap.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'light-client/src/tilemap.rs') diff --git a/light-client/src/tilemap.rs b/light-client/src/tilemap.rs index cd0f13ac..3464248d 100644 --- a/light-client/src/tilemap.rs +++ b/light-client/src/tilemap.rs @@ -1,3 +1,20 @@ +/* + 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 crate::sprite_renderer::SpriteRenderer; use hurrycurry_protocol::{glam::IVec2, TileIndex}; use sdl2::rect::{FRect, Rect}; @@ -71,7 +88,7 @@ impl Tilemap { pub fn draw(&self, ctx: &mut SpriteRenderer) { for &(src, dst) in self.tiles.values() { - ctx.draw(((dst.y + dst.h) * 32.) as i32, src, dst); + ctx.draw(((dst.y + dst.h) * 24.) as i32, src, dst); } } } -- cgit v1.2.3-70-g09d2