From 3f603ab0828a8e80990c38cf0845e67a2d443943 Mon Sep 17 00:00:00 2001 From: Mim Hufford Date: Tue, 1 Jun 2021 17:34:45 +0100 Subject: [PATCH] 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. --- Userland/Games/FlappyBug/Game.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Games/FlappyBug/Game.h b/Userland/Games/FlappyBug/Game.h index 936ebd9be8..ad0d20fa39 100644 --- a/Userland/Games/FlappyBug/Game.h +++ b/Userland/Games/FlappyBug/Game.h @@ -77,7 +77,7 @@ private: void reset() { - x = game_width; + x = game_width + width; gap_top_y = get_random_uniform(game_height - gap_height); }