comparison libadventure/adventure/state/mainmenu.c @ 215:64f24b482722

rpg: implement tilesets separately, closes #2515 @4h While here: - Add CMake macros, - Update maps, - Add more tests.
author David Demelier <markand@malikania.fr>
date Tue, 17 Nov 2020 20:08:42 +0100
parents ddfe0a211169
children befa2e855d3b
comparison
equal deleted inserted replaced
214:82fd79d5019e 215:64f24b482722
54 54
55 static void 55 static void
56 new(void) 56 new(void)
57 { 57 {
58 /* TODO: implement here. */ 58 /* TODO: implement here. */
59 if (!map_file_open(&molko.map_file, DIRECTORY "/maps/overworld.map", &molko.map)) 59 if (!map_file_open(&molko.map_file, &molko.map, DIRECTORY "/maps/overworld.map"))
60 panic(); 60 panic();
61 61
62 /* Put a sprite. */ 62 /* Put a sprite. */
63 if (!image_open(&molko.map_player_texture, DIRECTORY "/sprites/john.png")) 63 if (!image_open(&molko.map_player_texture, DIRECTORY "/sprites/john.png"))
64 panic(); 64 panic();