From 5941948319139b4224df29762d66de2430cc994f Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 2 Sep 2025 18:44:30 -0700 Subject: Rename map functions. --- demos/checkerboard/checkerboard.c | 12 ++++++------ demos/isomap/isomap.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'demos') diff --git a/demos/checkerboard/checkerboard.c b/demos/checkerboard/checkerboard.c index 0c8ff37..7ca31e1 100644 --- a/demos/checkerboard/checkerboard.c +++ b/demos/checkerboard/checkerboard.c @@ -81,12 +81,12 @@ static bool init(GfxApp* app, GfxAppState* state, int argc, const char** argv) { } IsoGfx* iso = state->iso; - isogfx_make_world( - iso, &(WorldDesc){.tile_width = TILE_WIDTH, - .tile_height = TILE_HEIGHT, - .world_width = WORLD_WIDTH, - .world_height = WORLD_HEIGHT, - .num_tiles = NUM_TILES}); + isogfx_make_map( + iso, &(MapDesc){.tile_width = TILE_WIDTH, + .tile_height = TILE_HEIGHT, + .world_width = WORLD_WIDTH, + .world_height = WORLD_HEIGHT, + .num_tiles = NUM_TILES}); const Tile black = isogfx_make_tile(iso, &tile_set[Black]); const Tile white = isogfx_make_tile(iso, &tile_set[White]); diff --git a/demos/isomap/isomap.c b/demos/isomap/isomap.c index 27c2bf3..391860c 100644 --- a/demos/isomap/isomap.c +++ b/demos/isomap/isomap.c @@ -46,7 +46,7 @@ static bool init(GfxApp* app, GfxAppState* state, int argc, const char** argv) { } IsoGfx* iso = state->iso; - if (!isogfx_load_world( + if (!isogfx_load_map( iso, "/home/jeanne/Nextcloud/assets/tilemaps/scrabling1.tm")) { return false; } -- cgit v1.2.3