mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
pause timer while loading new state
This commit is contained in:
parent
e27d20dd6a
commit
8a21478fd2
1 changed files with 4 additions and 0 deletions
|
@ -13,8 +13,12 @@ void Loading_Draw(struct Game *game) {
|
|||
|
||||
al_draw_bitmap(game->loading.loading_bitmap,0,0,0);
|
||||
|
||||
al_stop_timer(game->timer);
|
||||
|
||||
PreloadGameState(game);
|
||||
|
||||
al_start_timer(game->timer);
|
||||
|
||||
for(int fadeloop=255; fadeloop>0; fadeloop-=10){
|
||||
al_wait_for_event(game->event_queue, &ev);
|
||||
al_draw_tinted_bitmap(game->loading.loading_bitmap,al_map_rgba_f(fadeloop/255.0,fadeloop/255.0,fadeloop/255.0,1),0,0,0);
|
||||
|
|
Loading…
Reference in a new issue