summaryrefslogtreecommitdiff
path: root/Userland/Games/FlappyBug
AgeCommit message (Collapse)Author
2022-02-11LibConfig: Rename pledge_domains(String) => pledge_domain(String)Vitaly Dyachkov
pledge_domains() that takes only one String argument was specifically added as a shortcut for pledging a single domain. So, it makes sense to use singular here.
2022-01-13FlappyBug: Add link to help pages in menuDavid Lindbom
2021-12-23FlappyBug: Make bitmap() methods return NonnullRefPtrscreator1creeper1
We are already storing these as NonnullRefPtrs, so we might as well make the functions return them as such.
2021-12-23FlappyBug: Propagate errors in Cloud classcreator1creeper1
Move-construct Cloud into the Game class to improve error handling.
2021-12-23FlappyBug: Propagate errors in Bug classcreator1creeper1
Move-construct Bug into the Game class to improve error handling.
2021-12-23FlappyBug: Reposition Game constructor in filecreator1creeper1
This will become important later on because the constructor will depend on the helper structs
2021-12-23FlappyBug: Make helper structs publiccreator1creeper1
They will need to be referenced by main later on.
2021-12-18FlappyBug: Convert to try_create_default_iconAstraeus-
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-27FlappyBug: TRY() all the things in serenity_main() :^)Pedro Pereira
2021-11-24FlappyBug: Support mouse clicks for flappingPedro Pereira
This change allows to play the game using the mouse.
2021-11-24FlappyBug: Replace construct() with TRY(try_create()) patternPedro Pereira
2021-11-23FlappyBug+Spider: Update GUI:Application::construct usagePedro Pereira
Update code to use Main:Arguments directly.
2021-11-23LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCoreAndreas Kling
With this change, System::foo() becomes Core::System::foo(). Since LibCore builds on other systems than SerenityOS, we now have to make sure that wrappers work with just a standard C library underneath.
2021-11-22FlappyBug: Port to LibMainPedro Pereira
Simplified two pledge() and two unveil() by using TRY().
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-08-28FlappyBug: Remove wpath and cpath pledgesLuke Wilde
With the move to LibConfig, these are no longer needed.
2021-08-26FlappyBug: Use LibConfig instead of Core::ConfigFileRalf Donau
2021-08-22Games: Make cpath appear once in the pledge promisesRalf Donau
2021-08-22Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to opennetworkException
This patch brings the ConfigFile helpers for opening lib, app and system configs more inline with the regular ConfigFile::open functions.
2021-08-22Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writingnetworkException
2021-08-21FlappyBug: Flap less aggressivelyMitchel Humpherys
The current flap strength makes the game a lot more difficult than other flappy games. Decrease the flap strength to make it a little easier to get higher scores. Before this change I could only get past 3 or 4 obstacles, now I can get 15 or 20 in, which seems more on par with other flappy games.
2021-07-21Userland: Add GUI::Window::add_menu() and use it everywhereAndreas Kling
Applications previously had to create a GUI::Menubar object, add menus to it, and then call GUI::Window::set_menubar(). This patch introduces GUI::Window::add_menu() which creates the menubar automatically and adds items to it. Application code becomes slightly simpler as a result. :^)
2021-07-21LibGfx: Use "try_" prefix for static factory functionsAndreas Kling
Also mark them as [[nodiscard]].
2021-07-10FlappyBug: Only paint areas which need to be paintedTimothy Flynn
Drawing the entire PNG background is rather expensive. Instead, only draw the rects that are updating.
2021-06-22FlappyBug: Standardize on "high score" rather than "highscore"Timothy Flynn
"High score" should be two words, and this matches other games in the system.
2021-06-22FlappyBug: Persist high score to diskTimothy Flynn
Previously, the high score was only in-memory, so only persisted for as long as the FlappyBug window was open.
2021-06-22FlappyBug: Convert the main game widget to a GUI::FrameTimothy Flynn
2021-06-20FlappyBug: Add missing component declarationLinus Groh
The PR for this pre-dates the concept of components, so it was forgotten to add one.
2021-06-20FlappyBug: Add cloud and sky graphicsMim Hufford
We now have a nice sunset sky and some random cloud graphics. The obstacles will get graphics at some point too :)
2021-06-20FlappyBug: Add new graphics and tweak colorsMim Hufford
This adds some actual graphics to the game, and tweaks the obstacle and sky colors. Eventually there will be graphics for those elements too.
2021-06-20FlappyBug: Add an input cooldown after game overMim Hufford
This makes sure the player doesn't accidentally start a new game after they bump into an obstacle.
2021-06-20FlappyBug: Keep track of score and highscoreMim Hufford
Better information is now shown to the player. Instructions are shown when first loading the program, and any available scores are shown on the game over screen.
2021-06-20FlappyBug: Start obstacles off the screenMim Hufford
Previously obstacles were respawning fully on-screen which caused a discontinuous look. Now they smoothly move into view from off-screen.
2021-06-20FlappyBug: Make the obstacle gap position randomMim Hufford
The position of the gap in the obstacle is now randomly generated each time it spawns. The game is more fun to play now :)
2021-06-20FlappyBug: Introduce a new Flappy Bug gameMim Hufford
This introduces a Flappy Bug game. It's pretty simple currently, but is playable.