mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 20:29:03 +00:00
FlappyBug: Start obstacles off the screen
Previously obstacles were respawning fully on-screen which caused a discontinuous look. Now they smoothly move into view from off-screen.
This commit is contained in:
parent
444fcfd0d2
commit
3f603ab082
Notes:
sideshowbarker
2024-07-18 12:00:09 +09:00
Author: https://github.com/mimhufford
Commit: 3f603ab082
Pull-request: https://github.com/SerenityOS/serenity/pull/7668
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gunnarbeutner
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ private:
|
|||
|
||||
void reset()
|
||||
{
|
||||
x = game_width;
|
||||
x = game_width + width;
|
||||
gap_top_y = get_random_uniform(game_height - gap_height);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue