Linus Groh
d7c0370c57
GameOfLife: Don't randomize cells on board resize
...
Loosing all game state for a simple resize of the board is quite
disappointing, so let's not do that. :^)
2021-05-16 23:00:21 +02:00
Linus Groh
d859bde337
GameOfLife: Move "ms" interval label to GML
...
There's no reason not to!
2021-05-16 23:00:21 +02:00
Linus Groh
9a3f62adc7
GameOfLife: Remove some unused includes
2021-05-16 23:00:21 +02:00
Linus Groh
030360c787
GameOfLife: Add some margin to the toolbar layout
...
Ideally the inner widgets / vertical separators would have some as well,
but I'm not sure how right now. One step at a time. :^)
2021-05-16 23:00:21 +02:00
Linus Groh
f89eb0e4ce
GameOfLife: Switch from single indexed vector to rows+columns
...
This is not only easier to comprehend code-wise and avoids some function
overloads, but also makes resizing the board while preserving game state
*a lot* easier. We now no longer have to allocate a new board on every
resize, we just grow/shrink the individual row vectors.
Also fixes a crash when clicking the board widget outside of the drawn
board area.
2021-05-16 23:00:21 +02:00
Linus Groh
0fb96e6cbf
GameOfLife: Spell about action app name as "Game Of Life"
2021-05-15 17:55:49 +01:00
Linus Groh
9f9f54a9ad
GameOfLife: Add separator before quit menu action
2021-05-15 17:55:27 +01:00
Linus Groh
310ec73550
GameOfLife: Add alt shortcuts to menus
2021-05-15 17:54:50 +01:00
Linus Groh
2225e18749
GameOfLife: Rename primary menu to just "Game"
2021-05-15 17:52:58 +01:00
Andres Crucitti
d99991e39c
Games: Add GameOfLife
...
This patch introduces a new game based on Conway's Game of Life.
2021-05-15 17:44:21 +01:00