summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcreator1creeper1 <creator1creeper1@airmail.cc>2021-12-23 22:20:17 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-23 17:42:05 -0800
commita67afa735cfb8d95f62cc961fbb4f5f61866309b (patch)
treec8053a4a01e74ee78ebb088a719809e2d5a90e76
parent81eb4503691f2f294b51e7686c4e8cb655fcb6a7 (diff)
downloadserenity-a67afa735cfb8d95f62cc961fbb4f5f61866309b.zip
FlappyBug: Reposition Game constructor in file
This will become important later on because the constructor will depend on the helper structs
-rw-r--r--Userland/Games/FlappyBug/Game.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/FlappyBug/Game.h b/Userland/Games/FlappyBug/Game.h
index b6628742c9..fb9d4e890c 100644
--- a/Userland/Games/FlappyBug/Game.h
+++ b/Userland/Games/FlappyBug/Game.h
@@ -28,8 +28,6 @@ public:
Function<u32(u32)> on_game_end;
private:
- Game();
-
virtual void paint_event(GUI::PaintEvent&) override;
virtual void keydown_event(GUI::KeyEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;
@@ -154,6 +152,8 @@ private:
NonnullRefPtr<Gfx::Bitmap> m_background_bitmap { Gfx::Bitmap::try_load_from_file("/res/icons/flappybug/background.png").release_value_but_fixme_should_propagate_errors() };
const Gfx::IntRect m_score_rect { 10, 10, 20, 20 };
const Gfx::IntRect m_text_rect { game_width / 2 - 80, game_height / 2 - 40, 160, 80 };
+
+ Game();
};
}