More improvements but something is still buggy :/

This commit is contained in:
mibi88 2023-07-11 13:46:18 +02:00
parent dc2a0b1473
commit 6fa6f03c1a

View file

@ -55,23 +55,23 @@ void showtext(Game *game, bopti_image_t *face, char *text) {
*/
/* Make a little animation :). */
dupdate();
while(game->frame_duration < 20) sleep();
while(game->frame_duration < 100) sleep();
game->frame_duration = 0;
/* Ask the user to press EXE to continue. */
dtext(BOX_HEIGHT, y, C_BLACK, "[EXE] to continue ...");
/* Clear the screen. */
drect(0, 0, DWIDTH, BOX_HEIGHT*PXSIZE, C_WHITE);
}
/* Make a little animation :). */
dupdate();
if(l>=max_lines_amount-1){
while(getkey().key != KEY_EXE) sleep();
/* Clear the screen. */
drect(BOX_HEIGHT*PXSIZE, 0, DWIDTH, (BOX_HEIGHT-1)*PXSIZE, C_WHITE);
/* Reset y and l. */
y = 1;
l = 0;
}
else{
while(game->frame_duration < 20) sleep();
while(game->frame_duration < 100) sleep();
}
game->frame_duration = 0;
}
@ -79,7 +79,7 @@ void showtext(Game *game, bopti_image_t *face, char *text) {
/* If we have not filled everthing with text at the end. */
/* Make a little animation :). */
dupdate();
while(game->frame_duration < 20) sleep();
while(game->frame_duration < 100) sleep();
game->frame_duration = 0;
/* Ask the user to press EXE to continue. */
dtext(1, y, C_BLACK, "[EXE] To continue ...");