summaryrefslogtreecommitdiff
path: root/Userland/Games
AgeCommit message (Collapse)Author
2021-11-02Demos+DevTools+Games: Fix visibility of Object-derivative constructorsBen Wiederhake
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
2021-11-02Everywhere: Mark overridden methods 'override'Ben Wiederhake
This is good practice, and fixes some IDE warnings.
2021-10-29Minesweeper: Set time label to a fixed widthMusab Kılıç
This ensures the label width doesn't sporadically change as time elapses
2021-10-27Everywhere: Rename left/right-click to primary/secondaryFiliph Sandström
This resolves #10641.
2021-10-052048: Let user decide if he wants to continue the gameMohsan Ali
Before game finish when a player has reached target tile, Now player will be able to decide if he wants to continue or not
2021-09-15Breakout: Tag fallthrough statementMatheus Vinicius
Tag key changes with fallthrough statement to document the intention.
2021-09-15Breakout: Add possibility to play with A and DMatheus Vinicius
This change will make the player able to control the game with A and D keys, in addition to the current arrow keys and mouse.
2021-09-13Everywhere: Use my fancy new serenityos.org email :^)Mustafa Quraish
2021-09-10Breakout: Improve collision response between ball and paddleDamien Firmenich
When the ball hits the side of the paddle, it would get stuck because the paddle moves faster than the ball. This commit forces the post- collision vertical velocity of the ball to be going up and makes sure that new ball's y-position is higher than in the previous frame.
2021-09-08Pong: Switch to global trackingBen Wiederhake
When I play Pong, I don't really pay attention to whether my mouse is in the Pong window. That means that sometimes, annoyingly, the window loses my mouse, and I lose control of the paddle. Gasp! D: This commit teaches Pong the wonders of global mouse tracking, thus enabling the player to focus solely on the game.
2021-09-06Solitaire: Add Auto-Collect gameplay optionThitat Auareesuksakul
Add the option for players to enable automatic collection of eligible cards to their foundation pile with a single click of that card.
2021-09-03Everywhere: Use my shiny new serenityos.org email :^)Sam Atkins
2021-08-31GameOfLife: Don't enable rotate button if a pattern isn't selectedMusab Kılıç
2021-08-30Minesweeper: Use AK::get_random_uniform() instead of rand()Andreas Kling
2021-08-30Snake: Use AK::get_random_uniform() instead of rand()Andreas Kling
2021-08-282048: Remove wpath and cpath pledgesLuke Wilde
With the move to LibConfig, these are no longer needed.
2021-08-28Spider: Remove wpath and cpath pledges and pledge earlierLuke Wilde
With the move to LibConfig, the wpath and cpath pledges are no longer needed.
2021-08-28Solitaire: Remove wpath and cpath pledges and pledge earlierLuke Wilde
With the move to LibConfig, the wpath and cpath pledges are no longer needed.
2021-08-28Chess: Perform pledges earlierLuke Wilde
2021-08-28FlappyBug: Remove wpath and cpath pledgesLuke Wilde
With the move to LibConfig, these are no longer needed.
2021-08-28GameOfLife: Add pledge and unveilLuke Wilde
2021-08-28Pong: Remove wpath and cpath pledgesLuke Wilde
With the move to LibConfig, these are no longer needed.
2021-08-28Snake: Remove wpath and cpath pledgesLuke Wilde
With the move to LibConfig, these are no longer needed.
2021-08-28Minesweeper: Remove wpath and cpath pledgesLuke Wilde
With the move to LibConfig, these are no longer needed.
2021-08-27Hearts: Remove `wpath` and `cpath` priviligesMustafa Quraish
There are no longer needed since the config file is not being modified by the application directly.
2021-08-27Hearts: Use LibConfig instead of Core::ConfigFileMustafa Quraish
2021-08-27Pong: Remove unused Core::ConfigFile importsMustafa Quraish
This application was including, opening and unveiling the path for a config file, however it never actually reads or saves anything from the configuration file. Since it's easy enough to add it back later if needed, probably makes sense to remove the unused code right now?
2021-08-27Spider: Use LibConfig instead of Core::ConfigFileMustafa Quraish
There was a lot of error handling here previously when writing to a config file failed, but this was removed since we have no way of conveying a `Config::write` failure from the ConfigServer.
2021-08-27Snake: Use LibConfig instead of Core::ConfigFileMustafa Quraish
2021-08-26Games: Remove unveiling /tmp/portal/configRalf Donau
Config::pledge_domains is applied before, hence /tmp/portal/config can and should be veiled.
2021-08-26FlappyBug: Use LibConfig instead of Core::ConfigFileRalf Donau
2021-08-26Solitaire: Use LibConfig instead of Core::ConfigFileThitat Auareesuksakul
2021-08-26Chess: Use LibConfig instead of Core::ConfigFileThitat Auareesuksakul
2021-08-262048: Use LibConfig instead of Core::ConfigFileThitat Auareesuksakul
2021-08-26Minesweeper: Use LibConfig instead of Core::ConfigFileAndreas Kling
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-08-18Userland+LibGUI: Add shorthand versions of the Margins constructorsin-ack
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same margin on all edges, for example. The constructors follow CSS' style of specifying margins. The added constructors are: - Margins(int all): Sets the same margin on all edges. - Margins(int vertical, int horizontal): Sets the first argument to top and bottom margins, and the second argument to left and right margins. - Margins(int top, int vertical, int bottom): Sets the first argument to the top margin, the second argument to the left and right margins, and the third argument to the bottom margin.
2021-08-18Userland+LibGUI: Make Margins arguments match CSS orderingsin-ack
Previously the argument order for Margins was (left, top, right, bottom). To make it more familiar and closer to how CSS does it, the argument order is now (top, right, bottom, left).
2021-08-07Solitaire: Don't allow the player to draw cards while mouse is downthisSyntaxSucksAndYouKnowIt
2021-08-06Spider: Use YesNo dialog for user confirmation when closingJamie Mansfield
Cancel was superflous, and provided no difference to No.
2021-08-06Solitaire: Get user confirmation to close when there is a active gameJamie Mansfield
2021-08-05Solitaire: Clear selection when starting new gameJamie Mansfield
Fixes #9218.
2021-08-05Spider: Clear selection when starting new gameJamie Mansfield
Fixes #9217.
2021-07-31Breakout: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-31Pong: Add menus before showing the windowLuK1337
Otherwise, space is reserved but menus aren't shown.
2021-07-27Spider: Make statusbar high score display configurableJamie Mansfield
You can now choose what statistic (currently only high score or best time) to display in the statusbar.
2021-07-27Spider: Start game if first move is to draw cardsJamie Mansfield
This fixes a bug where the game wouldn't consider it had started.