feat!: dynamic map rendering from tiles

This commit is contained in:
2025-08-13 00:25:34 -05:00
parent c1e421bbbb
commit 09e3d85821
89 changed files with 1072 additions and 1024 deletions

View File

@@ -158,8 +158,8 @@ impl Map {
///
/// This function draws the static map texture to the screen at the correct
/// position and scale.
pub fn render<T: RenderTarget>(&self, canvas: &mut Canvas<T>, atlas: &mut SpriteAtlas, map_texture: &mut AtlasTile) {
MapRenderer::render_map(canvas, atlas, map_texture);
pub fn render<T: RenderTarget>(&self, canvas: &mut Canvas<T>, atlas: &mut SpriteAtlas, map_tiles: &mut [AtlasTile]) {
MapRenderer::render_map(canvas, atlas, map_tiles);
}
/// Generates Item entities for pellets and energizers from the parsed map.