Commit Graph

18 Commits

Author SHA1 Message Date
b89fc62513 remove the lookup table / binary-encoded logic. 2025-07-03 09:48:59 +02:00
13e21cb79d write function for the new logic-based tetromino shape definitions 2025-07-03 00:15:43 +02:00
9fbc9e0f9a use common integer type in shapes.c/shapes.h, for decreasing namespace pollution 2025-06-25 15:40:52 +02:00
b446a43738 use tabs over spaces 2025-06-25 15:40:52 +02:00
7c20704990 rename window io 2025-06-25 15:39:23 +02:00
60ae11de10 synchronise with the template
- use the version of audio management which doesn't crash the
application if something goes wrong
- include colour32
- update error management to be more reflective of the one defined in
the template
- modify the renderer functions to be more reflective of the template
- modify the game functions to be more reflective of the template (& use
a more failproof method of initializing)
- add gametime
- remove set_gamestatus logic and just use a run boolean in gamedata
- remove emscripten preprocessors as those haven't really been used
2025-03-22 15:29:42 +01:00
e95e201116 fix: shape_ prefix to is_set 2025-02-11 21:54:23 +01:00
663e28f085 rename more typedefs to lowercase 2025-02-11 21:53:17 +01:00
3fd7806e5f code cleanup:
- rename typedefs to a lowercase variant
- change variable names to shorter variants
2025-02-10 12:28:05 +01:00
94ca7e3d08 rename Colour8 to colour8 2025-02-10 11:58:00 +01:00
be09d57a27 use "const" where able to + random readability changes 2025-02-04 12:17:42 +01:00
c546f78c4c use correct 8 bit colourspace instead of including alpha 2025-02-03 15:02:00 +01:00
92676d6474 fix: you need to take the square root of the size, not divide by two, 2025-01-27 16:44:02 +01:00
b3ad7e1f54 readability fixes 2025-01-27 16:38:24 +01:00
2dbdc5ac40 add colour selection based on ID 2025-01-27 16:19:07 +01:00
1097c6e09d make shape data identifiable by ID and rotation 2025-01-27 16:16:23 +01:00
b698a0e3d1 add some temporary code for setting a random tetromino 2025-01-27 15:32:05 +01:00
fec4651639 rename shapes.h to tetromino/shapes.h 2025-01-27 00:20:36 +01:00