Age | Commit message (Collapse) | Author |
|
Since the Beginner difficulty has a 9x9 playing field, it is expected
that a Custom Game should allow to create a field with that size.
|
|
This change makes it easier to generate a new field. Instead of using
hard-coded values everywhere, we now just need to keep track of
the Difficulty enum value.
|
|
This change makes use of checkable actions to specify the current
selected difficulty for the game.
|
|
This adds a dialog window which allows us to customize the size of the
board and the amount of mines that will be placed.
The current max amount of mines is 50% of the total number of cells
due to the fact that the generator algorithm takes too long to create a
board for higher percentages of mines.
|
|
Solitaire: Fix 3 card draw from reversing after an undo
Co-Authored-By: Tim Flynn <trflynn89@pm.me>
|
|
|
|
This was used in a lot of places, so this patch makes liberal use of
ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
|
|
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.
|
|
This is good practice, and fixes some IDE warnings.
|
|
This ensures the label width doesn't sporadically change as time elapses
|
|
This resolves #10641.
|
|
Before game finish when a player has reached target tile,
Now player will be able to decide if he wants to continue or not
|
|
Tag key changes with fallthrough statement to document the intention.
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
Add the option for players to enable automatic collection of eligible
cards to their foundation pile with a single click of that card.
|
|
|
|
|
|
|
|
|
|
With the move to LibConfig, these are no longer needed.
|
|
With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
|
|
With the move to LibConfig, the wpath and cpath pledges are no longer
needed.
|
|
|
|
With the move to LibConfig, these are no longer needed.
|
|
|
|
With the move to LibConfig, these are no longer needed.
|
|
With the move to LibConfig, these are no longer needed.
|
|
With the move to LibConfig, these are no longer needed.
|
|
There are no longer needed since the config file is not being
modified by the application directly.
|
|
|
|
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?
|
|
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.
|
|
|
|
Config::pledge_domains is applied before, hence /tmp/portal/config
can and should be veiled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This patch brings the ConfigFile helpers for opening lib, app and system
configs more inline with the regular ConfigFile::open functions.
|
|
|
|
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.
|
|
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.
|
|
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).
|
|
|
|
Cancel was superflous, and provided no difference to No.
|