aboutsummaryrefslogtreecommitdiff
path: root/light-client/src/tilemap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'light-client/src/tilemap.rs')
-rw-r--r--light-client/src/tilemap.rs19
1 files changed, 18 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>.
+
+*/
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);
}
}
}