Commit Graph

65 Commits

Author SHA1 Message Date
Kristofers Solo
4bd4ff00ad feat(game): add phantoms 2024-01-07 18:13:01 +02:00
Kristofers Solo
c58bf61603 feat(game): update music 2024-01-07 17:31:20 +02:00
Kristofers Solo
f85b72a150 refactor(game): use pygame.key.key_code() 2024-01-07 17:14:09 +02:00
Kristofers Solo
1cc0b081ec feat(game): add Settings class 2024-01-07 16:55:21 +02:00
Kristofers Solo
37132f54e0 feat(game): volume from file 2024-01-07 16:52:58 +02:00
Kristofers Solo
8e3ed493e0 feat(game): movemnt keys from file 2024-01-07 16:47:24 +02:00
Kristofers Solo
77cd153b10 refactor(ai) 2024-01-07 04:29:01 +02:00
Kristofers Solo
c8859bc571 refactor(game) 2024-01-06 23:18:10 +02:00
Kristofers Solo
080ba1b9cb fix imports 2024-01-06 21:25:42 +02:00
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