1
0
Fork 0
Commit graph

77 commits

Author SHA1 Message Date
4319ec55e5 feat(gameover): make gameover state abit more interesting. 2025-10-06 18:15:40 +02:00
53ac3840ba feat(gameover): only allow the user to switch state after the gameover sound has been played. 2025-09-26 12:10:54 +02:00
1b187d7412 fix(audio): implement IsPlaying() correctly
cant use rl.IsSoundPlaying() because we create sound aliases.
so we must look at the sm.active slice instead
2025-09-26 12:09:05 +02:00
cb6e66bc45 chore: add editorconfig 2025-09-25 21:57:52 +02:00
57e57f3037 feat: set window icon 2025-09-25 05:12:04 +02:00
93736e060e feat(engine): add LoadImageFromMemory() 2025-09-25 05:12:04 +02:00
5b54466018 feat(assets): add icon 2025-09-25 05:12:04 +02:00
634fd7ce40 chore(makefile): add .PHONY target again 2025-09-24 20:15:58 +02:00
213b9a0d9e chore: fix build for windows 2025-09-24 20:13:56 +02:00
1468b1c025 v0.13 2025-09-24 19:48:57 +02:00
8f8be3d6f7 feat(gameover): center text 2025-09-24 19:48:57 +02:00
dcad4ad0a5 feat(gameover): play gameover sound 2025-09-24 19:48:57 +02:00
9f055c6bb8 feat(assets): add gameover sound 2025-09-24 19:48:57 +02:00
68b67e4585 feat(menu): play sound effects. 2025-09-24 19:48:57 +02:00
7c02075075 feat(assets): add menu sound effects 2025-09-24 19:48:34 +02:00
288e710b9f feat: improve menu 2025-09-24 19:48:34 +02:00
35e73f2b37 feat(fsm): make the special state "quit" exit the fsm. 2025-09-24 18:32:50 +02:00
346cf350d8 feat(render): add DrawTextCenter() 2025-09-24 18:31:10 +02:00
cd750a5508 fix: reset state on Enter() 2025-09-24 18:03:28 +02:00
54a7821df0 feat: detect game over condition and switch state. 2025-09-24 18:02:07 +02:00
cae34a52aa feat: start the machine in the menu state 2025-09-21 12:18:52 +02:00
b8397aefdb feat: register menu and gameover states. 2025-09-21 12:18:32 +02:00
6d15a806f6 feat: add basic game over state 2025-09-21 12:18:02 +02:00
53a31ea8ad feat: add basic menu state 2025-09-21 12:17:53 +02:00
29225b7007 feat: refactor gameplay logic from main.go to a state machine handler. 2025-09-21 12:16:42 +02:00
75b4981566 feat: add basic state machine implementation 2025-09-21 12:15:17 +02:00
ceb4cfad40 v0.12 2025-09-21 11:12:24 +02:00
a5c9e687ee feat: add sound on shape locked and row clear 2025-09-21 11:11:47 +02:00
173adadb84 feat: initialize and use audio subsystem. 2025-09-21 11:11:34 +02:00
1c31fd43ac feat(assets): add sound library 2025-09-21 11:10:59 +02:00
5860aa69d6 feat: engine audio code 2025-09-21 11:07:51 +02:00
1799422591 feat(assets): add sound files 2025-09-18 15:04:14 +02:00
713da2e6be v0.11 2025-09-17 06:39:34 +02:00
d6c9389e60 feat: use ShapeQueue to implement shape RNG 2025-09-17 06:39:15 +02:00
5c4503268f feat: add game/shape_queue.go 2025-09-17 06:38:37 +02:00
6e42dbce4f v0.10 2025-09-17 06:33:55 +02:00
12712e0172 feat: draw next shape 2025-09-17 06:33:45 +02:00
be57dd8231 v0.9 2025-09-15 08:52:02 +02:00
b6a33d017f feat: show score and increment when lines are cleared 2025-09-15 08:50:52 +02:00
14520e047c feat: add score type 2025-09-15 08:50:52 +02:00
3f1140910d v0.8 2025-09-15 08:07:27 +02:00
ac4d911efd feat: clear full lines after locking shape 2025-09-15 08:07:16 +02:00
2a7f394b7f feat(grid): add ClearFullRows() 2025-09-15 08:06:39 +02:00
1d7423d886 feat(grid): add MoveRowDown() 2025-09-15 08:06:02 +02:00
890331991f feat(grid): add ClearRow() 2025-09-15 08:05:39 +02:00
eb31bdf50c feat(grid): add IsRowFull() 2025-09-15 08:05:02 +02:00
e958f87e64 v0.7 2025-09-15 07:00:00 +02:00
8f11a99e08 feat: soft drop 2025-09-15 06:59:54 +02:00
f7df74aeaa v0.6 2025-09-15 06:56:44 +02:00
4ce5b82b25 feat: rotate shape when UP is pressed. 2025-09-15 06:54:54 +02:00