Commit Graph

56 Commits

Author SHA1 Message Date
Kristofers Solo
231640dec6 feat(game): utilize GameMode 2024-01-06 17:43:44 +02:00
Kristofers Solo
82d26ddc03 feat(game): allow rotation near borders
feat(game): limit loop size
2024-01-06 17:36:25 +02:00
Kristofers Solo
126a49f38f feat(game): display highscore 2024-01-06 17:23:18 +02:00
Kristofers Solo
e77dce308b feat(game): add drop timer 2024-01-06 16:58:34 +02:00
Kristofers Solo
a56f457482 refactor(game): mouse position 2024-01-06 16:50:37 +02:00
Kristofers Solo
40b6556c97 refactor(game): remove Field enum 2024-01-06 16:45:30 +02:00
Kristofers Solo
786ecb3536 feat(game): add disabled button colors 2024-01-06 16:13:28 +02:00
Kristofers Solo
6fb7fee090 feat(game): add button highlight 2024-01-06 05:17:09 +02:00
Kristofers Solo
7d5bf8e658 feat(game): add main menu 2024-01-06 05:07:46 +02:00
Kristofers Solo
0afe1ed3cb refactor(game): pass mypy 2024-01-06 03:59:13 +02:00
Kristofers Solo
bb80400ad7 game(feat): add game mode 2024-01-06 03:09:10 +02:00
Kristofers Solo
6b3f0ea619 feat(game): add logs 2024-01-06 03:02:33 +02:00
Kristofers Solo
364988a8f8 feat(game): show only 1 next figure 2024-01-06 03:00:27 +02:00
Kristofers Solo
64f14d178f refactor(ai): adjust the fitness calculation 2024-01-05 15:51:35 +02:00
Kristofers Solo
43fb1eb8d2 refactor(ai)
refactor(ai)

refactor(ai)

adjust ai
2024-01-05 02:47:34 +02:00
Kristofers Solo
33554bf0e0 feat(game): add mute 2024-01-04 18:51:06 +02:00
Kristofers Solo
a880dd45fd fix(game): reset
refactor(game): add type hints
2024-01-04 18:46:10 +02:00
Kristofers Solo
858d2a98fc feat(game): expose some methods 2024-01-04 18:42:28 +02:00
Kristofers Solo
1ead412528 feat(game): add rotation direction
style: change docstrings
2024-01-04 17:43:18 +02:00
Kristofers Solo
b4157ef8b0 feat(game): add drop option 2024-01-04 17:19:55 +02:00
Kristofers Solo
ac46665dca docs(game): add docstrings
`Preview`

`Game`

`Score`

`Tetromino`

`Timer`

style(docs): adhere to Google docstring style
2024-01-04 17:06:45 +02:00
Kristofers Solo
918e832862 refactor(game): broke Main into smaller methods 2024-01-04 06:51:03 +02:00
Kristofers Solo
7f9b1fb266 feat(game): add langing sound 2024-01-04 06:43:34 +02:00
Kristofers Solo
91587b772f feat(game): add background music 2024-01-04 06:41:11 +02:00
Kristofers Solo
a294ba4e90 feat(game): add game over and restart methods 2024-01-04 06:34:29 +02:00
Kristofers Solo
384a4d8d74 feat(game): add scoring mechanic 2024-01-04 06:29:18 +02:00
Kristofers Solo
ee179036e2 feat(game): display text 2024-01-04 05:57:39 +02:00
Kristofers Solo
3962ad4e14 feat(game): increase down speed on key press 2024-01-04 05:36:00 +02:00
Kristofers Solo
3b4865b8a1 feat(game): positions next figure images 2024-01-04 05:26:29 +02:00
Kristofers Solo
e5475e6e5f feat(game): preview next figure images 2024-01-04 05:22:18 +02:00
Kristofers Solo
aa96feb93b style(game): rename shape to figure 2024-01-04 04:59:37 +02:00
Kristofers Solo
29c0460fb2 feat(game): add generation of next Figures 2024-01-04 04:58:00 +02:00
Kristofers Solo
2c040b4575 feat(game): add figure rotation 2024-01-04 04:46:50 +02:00
Kristofers Solo
2df1c0a156 feat(game): add full row disappearance and movement 2024-01-04 04:24:49 +02:00
Kristofers Solo
976f7d51cd feat(game): add horizontal block collision 2024-01-04 03:59:37 +02:00
Kristofers Solo
e68abf8f94 feat(game): add vertical block collision 2024-01-04 03:56:45 +02:00
Kristofers Solo
a211dd0254 feat(game): generate new figure 2024-01-04 03:20:52 +02:00
Kristofers Solo
5a12de0c88 feat(utils): add enum options 2024-01-04 03:14:52 +02:00
Kristofers Solo
dbc445b323 feat(game): add horizontal border 2024-01-04 03:14:52 +02:00
Kristofers Solo
d28f24cf0a feat(game): add vertical borders
style(game): rename method

style(game): wrong method name

style(game): fix wrong method name
2024-01-04 03:14:52 +02:00
Kristofers Solo
684f5ba196 refactor(game): use Direction enum 2024-01-04 03:14:52 +02:00
Kristofers Solo
86d7899e1f feat(game): add horizontal movement 2024-01-04 03:14:52 +02:00
Kristofers Solo
ae31baf925 feat(game): add block movement down 2024-01-04 03:14:52 +02:00
Kristofers Solo
e31195d486 feat(game): add Timer 2024-01-04 03:14:52 +02:00
Kristofers Solo
5291ca5de5 fix(game): grid border render 2024-01-04 03:14:52 +02:00
Kristofers Solo
b5e7a7b12f feat(game): add figure offset 2024-01-04 03:14:52 +02:00
Kristofers Solo
29d83322af feat(game): add Tetramino class 2024-01-04 03:14:52 +02:00
Kristofers Solo
54b5aa5774 refactor(utils): replace Position with Vector2 2024-01-04 03:14:52 +02:00
Kristofers Solo
e045779158 feat(game): add Block class 2024-01-04 01:15:34 +02:00
Kristofers Solo
06fa7c4cf7 fix(game): flickering 2024-01-04 00:57:56 +02:00