removed draw_ functions and replaced with just update_

pull/1/head
Sara 2023-04-10 16:54:05 +02:00
parent 94d39e2913
commit f4ccfd43a7
2 changed files with 3 additions and 5 deletions

View File

@ -35,11 +35,10 @@ int engine_run() {
start_game(); start_game();
while(g_context.running) { while(g_context.running) {
handle_events(); handle_events();
update_game();
draw_game();
_render_mode = 1; _render_mode = 1;
draw_game_ui(); update_ui();
_render_mode = 0; _render_mode = 0;
update_game();
swap_buffer(); swap_buffer();
} }
engine_shutdown(); engine_shutdown();

View File

@ -8,7 +8,6 @@
extern void load_game(); extern void load_game();
extern void start_game(); extern void start_game();
extern void update_game(); extern void update_game();
extern void draw_game(); extern void update_ui();
extern void draw_game_ui();
#endif /* _engine_h */ #endif /* _engine_h */