2 \brief main state machine for the engine
3 \details initializes necessary subsystems before invoking the preloader,
4 which loads initial game data, before finally invoking the
5 main loop gameloop(void)
8 ------------------------------------------------------------------------------*/
11 #include <emscripten/emscripten.h>
13 #include <SDL2/SDL_ttf.h>
16 #include <SDL2/SDL_image.h>
18 /* Exposed functions */
20 void state_tick(uint32_t);
21 const char* state_get_error(void);
22 void state_quit(void);
23 void state_handle_event(SDL_Event *);
31 state_tick(uint32_t delta_ticks)
37 { static char err[5] = "Ass!";
38 return (const char *)&err;
47 state_handle_event(SDL_Event *event)