1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include "game.h" #include "standard.h" Game game; void on_init(int argc, char** argv) { seed_rng(500); init_renderer(); load_assets(); game_init(&game, game_state_menu); } void on_update() { renderer_begin_frame(); game_update(&game); } void on_deinit() { game_deinit(&game); }