Commit Graph

27 Commits

Author SHA1 Message Date
cfad7f6fdc update pointer alignment rule 2025-09-09 16:17:15 +02:00
9cafbedad8 rename TETROMINO_* fields to TET*, to be shorter
constants like `TETROMINO_COUNT`, `TETROMINO_ROTATED_90` were too long,
and took up too much horizontal space.
2025-07-03 13:33:54 +02:00
ffd423331a add error handling for debugging when id is invalid with shape acquisition 2025-07-03 09:49:19 +02:00
b89fc62513 remove the lookup table / binary-encoded logic. 2025-07-03 09:48:59 +02:00
edcd5d30d3 reduce memory footprint of tetromino plock location data 2025-07-03 01:02:11 +02:00
13e21cb79d write function for the new logic-based tetromino shape definitions 2025-07-03 00:15:43 +02:00
27cacb055c fix: S and Z shapes were inverted 2025-07-02 22:38:03 +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
bf62a60710 remove broke option code 2025-06-18 15:43:38 +02:00
18243a23eb clean up code 2025-06-18 15:43:38 +02:00
f64db135a9 use loaded options for selecting the colour 2025-04-23 16:53:15 +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
5ad9be7bcc fix: macros didn't have new struct name 2025-02-11 21:55:20 +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
56d957cbb2 fix; swapped S and Z 2025-02-01 23:41:24 +01:00
0432e847ac rotation fixes and tweaks 2025-02-01 23:29:37 +01:00
9c63c82822 remove whitespace 2025-01-28 17:05:18 +01:00
f974f48d79 rename TET_SHAPE_* macros to SHAPE_ 2025-01-28 17:04:39 +01:00
1a7903f30f rework shapes & rotations to be more usable (also fixed broken J and T variants) 2025-01-28 17:04:07 +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