diff options
author | 3gg <3gg@shellblade.net> | 2025-09-02 18:44:30 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-09-02 18:45:12 -0700 |
commit | 5941948319139b4224df29762d66de2430cc994f (patch) | |
tree | 21ab50c106600a4fcc2245587ff513b9b95deb38 /demos | |
parent | e6bf7e77797103ee7ab0eda57c360c38f1b2089c (diff) |
Rename map functions.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/checkerboard/checkerboard.c | 12 | ||||
-rw-r--r-- | demos/isomap/isomap.c | 2 |
2 files changed, 7 insertions, 7 deletions
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) { | |||
81 | } | 81 | } |
82 | IsoGfx* iso = state->iso; | 82 | IsoGfx* iso = state->iso; |
83 | 83 | ||
84 | isogfx_make_world( | 84 | isogfx_make_map( |
85 | iso, &(WorldDesc){.tile_width = TILE_WIDTH, | 85 | iso, &(MapDesc){.tile_width = TILE_WIDTH, |
86 | .tile_height = TILE_HEIGHT, | 86 | .tile_height = TILE_HEIGHT, |
87 | .world_width = WORLD_WIDTH, | 87 | .world_width = WORLD_WIDTH, |
88 | .world_height = WORLD_HEIGHT, | 88 | .world_height = WORLD_HEIGHT, |
89 | .num_tiles = NUM_TILES}); | 89 | .num_tiles = NUM_TILES}); |
90 | 90 | ||
91 | const Tile black = isogfx_make_tile(iso, &tile_set[Black]); | 91 | const Tile black = isogfx_make_tile(iso, &tile_set[Black]); |
92 | const Tile white = isogfx_make_tile(iso, &tile_set[White]); | 92 | 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) { | |||
46 | } | 46 | } |
47 | IsoGfx* iso = state->iso; | 47 | IsoGfx* iso = state->iso; |
48 | 48 | ||
49 | if (!isogfx_load_world( | 49 | if (!isogfx_load_map( |
50 | iso, "/home/jeanne/Nextcloud/assets/tilemaps/scrabling1.tm")) { | 50 | iso, "/home/jeanne/Nextcloud/assets/tilemaps/scrabling1.tm")) { |
51 | return false; | 51 | return false; |
52 | } | 52 | } |