mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
FlappyBug: Reposition Game constructor in file
This will become important later on because the constructor will depend on the helper structs
This commit is contained in:
parent
81eb450369
commit
a67afa735c
Notes:
sideshowbarker
2024-07-17 22:18:55 +09:00
Author: https://github.com/creator1creeper1 Commit: https://github.com/SerenityOS/serenity/commit/a67afa735cf Pull-request: https://github.com/SerenityOS/serenity/pull/11383 Reviewed-by: https://github.com/sin-ack ✅
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue