Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End screen should pause and wait for user input #45

Open
moggers87 opened this issue May 12, 2023 · 0 comments
Open

End screen should pause and wait for user input #45

moggers87 opened this issue May 12, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@moggers87
Copy link
Owner

moggers87 commented May 12, 2023

The finish screen displays for only 4 seconds, which is kinda annoying

SDL_RenderCopy(g.renderer, texture, &rect, NULL);
SDL_RenderPresent(g.renderer);
g.sound.play(SOUND_FINISH);
// Wait 4 Seconds
int then = time(0);
while (time(0) - then < 4) {
}
SDL_DestroyTexture(texture);
}

@moggers87 moggers87 added enhancement New feature or request good first issue Good for newcomers labels May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant