summaryrefslogtreecommitdiff
path: root/Userland/Games
AgeCommit message (Collapse)Author
2022-06-30Applications+Games+LibGUI: Fix layout problemsFrHun
2022-06-28Applications: Remove usages of deprecated implicit conversionsFrHun
These deprecated conversions are currently in place to make the system compile, but they are to be removed soon. This prepares that.
2022-06-15Userland+Base: Remove Breakout and Pong gamesAndreas Kling
These games were not very playable and definitely not fun.
2022-06-05Pong: Paint ball antialiasedMacDue
2022-06-05Chess: Paint move marker antialiasedMacDue
2022-06-05Breakout: Paint ball antialiasedMacDue
2022-05-29Everywhere: Fix a bunch of typosLinus Groh
2022-05-26MasterWord: Check guesses against the word listPaweł Łukasik
Previously guesses were not checked which allowed guesses like 'aaaaa' to be entered. Currently there's an option to set if a guess should be checked against the dictionary and rejected if it doesn't exist there. Additionally settings from Game menu have been moved to its own entry - Settings.
2022-05-13LibGUI+Userland: Make Dialog::ExecResult an enum classSam Atkins
2022-04-15Pong: Explicitly clear held keys in Game::reset()Martin Frederic
The paddle's movement is determined by the currently held keys. A key is no longer considered held when a matching keyup_event() fires. However, the event does not fire when the timer has stopped (e.g. due to a game over condition), which can result in the paddle keeping its former direction and moving on its own -- even after the player started a new game. Therefore, any held keys will be cleared explicitly.
2022-04-15Pong: Restart timer if necessaryMartin Frederic
When the player runs into a game over condition, Game's timer is stopped. In order for reset() to work properly, the timer has to be started again. The condition is tracked via a new member variable, `m_game_over`. To prevent confusion, game_over() has been renamed to show_game_over_message().
2022-04-15Pong: Extend Game::reset()Martin Frederic
Previously, the method reset the ball and the paddles. Now, it will also reset and redraw the scores and update the ball's rect.
2022-04-15Pong: Add 'New Game' actionMartin Frederic
This declares Game::reset() public and lets the menu action invoke it.
2022-04-09LibGfx: Move other font-related files to LibGfx/Font/Simon Wanner
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-18LibCards+Games: Change name of card type to card suitLenny Maiorani
Playing cards have a `suit` such as `hearts`/`diamonds`, not a `type`. Make the internal naming consistent with the way playing cards are typically named.
2022-03-18Libraries: Change enums to enum classes in LibCardsLenny Maiorani
2022-03-18Userland: Change static const variables to static constexprLenny Maiorani
`static const` variables can be computed and initialized at run-time during initialization or the first time a function is called. Change them to `static constexpr` to ensure they are computed at compile-time. This allows some removal of `strlen` because the length of the `StringView` can be used which is pre-computed at compile-time.
2022-03-18Games: Add MasterWordJoe Petrus
A simple wordle clone.
2022-03-18Hearts: Add icon to settings actionLinus Groh
2022-03-18Applications+Games: Drop ellipsis from settings actionLinus Groh
There is no second step to complete after activating this action.
2022-03-18Games: Add reload icon to 'New Game' actionsLinus Groh
2022-03-04LibGfx: Rename Color::from_rgba() => Color::from_argb()Andreas Kling
This matches the rename of RGBA32 to ARGB32. It also makes more sense when you see it used with 32-bit hexadecimal literals: Before: Color::from_rgba(0xaarrggbb) After: Color::from_argb(0xaarrggbb)
2022-03-04LibGfx+GameOfLife: Remove Gfx::make_rgb() and its one userAndreas Kling
2022-02-24LibGUI+Apps: Convert Statusbar Labels to Segmentsthankyouverycool
Segments inherit from Button and let us add clickable widgets to status bars. This patch also adds proportional, fixed and autosized modes for segments and lets the status bar consume all non-clickable segments for override text.
2022-02-16Games: Use default constructors/destructorsLenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2022-02-13Userland: Run gml-formatIdan Horowitz
This brings the existing GML files up to spec with the new requirements
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-02-07Meta+Userland: Run the GML formatter on CI and pre-commitkleines Filmröllchen
Now that the GML formatter is both perserving comments and also mostly agrees to the existing GML style, it can be used to auto-format all the GML files in the system. This commit does not only contain the scripts for running the formatting on CI and the pre-commit hook, but also initially formats all the existing GML files so that the hook is successfull.
2022-02-06AK: Move integral log2 and exp to IntegerMath.hHendiadyoin1
2022-01-28Chess: Don't use Vector in a literal iteratorkleines Filmröllchen
2022-01-13Snake: Add link to help pages in menuDavid Lindbom
2022-01-13Pong: Add link to help pages in menuDavid Lindbom
2022-01-13Minesweeper: Add link to help pages in menuDavid Lindbom
2022-01-13Hearts: Add link to help pages in menuDavid Lindbom
2022-01-13GameOfLife: Add link to help pages in menuDavid Lindbom
2022-01-13FlappyBug: Add link to help pages in menuDavid Lindbom
2022-01-13Chess: Add link to help pages in menuDavid Lindbom
2022-01-13Breakout: Add link to help pages in menuDavid Lindbom
2022-01-132048: Add link to help pages in menuDavid Lindbom
2022-01-102048: Add action icons for New Game and SettingsDylan Katz
2022-01-102048: Simplify dialog box when target reachedDylan Katz
Previously, upon reaching the target, the player is presented with potentially two dialog boxes: one asking if the user wants to continue endlessly and another showing the player's statistics, which would only be shown if the user does not want to continue. This commit consolidates these into a single dialog box that shows the relevant statistics and asks the user if they want to continue endlessly.
2022-01-102048: Fix off-by-1 when opening settingsDylan Katz
When opening 2048's settings, it translates the target tile into a power of 2. Previously, it was done incorrectly, causing the resulting value to be off by one, and the number would increase every time one opens, saves and closes the settings. With this change, it now works as expected.
2022-01-08Spider: Add functionality to automatically move cards to valid stacksNeolyum
This commit adds the possibility to use the secondary mouse button to let the game move the selected card(s) to the next valid stack.
2022-01-02Spider: Redraw completely when drawing cardsJamie Mansfield
Spider was only updating the new bounding box area after drawing cards from the deck - leaving behind a sliver of the old deck. This was a regression, as the game previously used the old bounding box, introduced by GH-11153.
2021-12-30Pong: Support W and S keys for movementr00ster91
2021-12-24Spider: Add animation when drawing cardsNihal Jere
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.