comparison libmlk-adventure/adventure/molko.c @ 267:bead76f6c793

adventure: start a global assets registry
author David Demelier <markand@malikania.fr>
date Thu, 10 Dec 2020 16:28:30 +0100
parents 11db1d425502
children 8d41e317c07b
comparison
equal deleted inserted replaced
266:e48ffbcf9bcc 267:bead76f6c793
39 #include <adventure/state/panic.h> 39 #include <adventure/state/panic.h>
40 #include <adventure/state/splashscreen.h> 40 #include <adventure/state/splashscreen.h>
41 #include <adventure/state/mainmenu.h> 41 #include <adventure/state/mainmenu.h>
42 #include <adventure/state/map.h> 42 #include <adventure/state/map.h>
43 43
44 #include "assets.h"
44 #include "molko.h" 45 #include "molko.h"
45 46
46 #define WINDOW_WIDTH 1280 47 #define WINDOW_WIDTH 1280
47 #define WINDOW_HEIGHT 720 48 #define WINDOW_HEIGHT 720
48 49
75 */ 76 */
76 77
77 /* Init unrecoverable panic state. */ 78 /* Init unrecoverable panic state. */
78 molko.panic = panic_state_new(); 79 molko.panic = panic_state_new();
79 panic_handler = crash; 80 panic_handler = crash;
81
82 /* Init other stuff. */
83 assets_init();
80 84
81 /* Start to splash. */ 85 /* Start to splash. */
82 game_switch(splashscreen_state_new(), true); 86 game_switch(splashscreen_state_new(), true);
83 } 87 }
84 88