Commit Graph

107 Commits

Author SHA1 Message Date
14c62914f0 add memory safety check for when initializing the rows 2025-03-22 16:28:31 +01:00
a46e48f603 add line number and file name to error log 2025-03-22 15:31:12 +01: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
7fb624311f use new error files 2025-03-22 12:08:47 +01:00
fccf1c6276 fix: did not include SDL2_ttf in new version 2025-03-22 12:08:47 +01:00
f5c1f8c343 don't require ARCH when cleaning 2025-03-22 12:08:47 +01:00
595336ad0c touchups on the new error files 2025-03-22 12:08:47 +01:00
1abf9297ec add new error files
add the error files from sdl_template.
they are called 'error' instead of 'errors'.
'error' shall replace 'errors' in a following commit
2025-03-22 12:08:47 +01:00
d44e99ade5 sync config files with template 2025-03-22 11:15:53 +01:00
bd904b5e32 some formatting fixes 2025-03-22 11:09:00 +01:00
a446368e56 add documentation files 2025-03-22 11:06:56 +01:00
25954afeea fix: not updating text entirely 2025-02-17 00:41:59 +01:00
f30b8182b1 optimise text drawing function by only creating a new texture when necessary 2025-02-16 23:44:27 +01:00
2c5be9685c fix: remove bitfield from union 2025-02-12 19:24:21 +01:00
0596f8d5d5 fix: forgot to rename renderdata to a lowercase variant 2025-02-12 17:29:34 +01:00
be3c796ec1 fix: lldb unable to connect to the program 2025-02-12 17:10:18 +01:00
f755f76636 make makefile output more readable and fix issues regarding debugging 2025-02-12 13:12:09 +01:00
5ad9be7bcc fix: macros didn't have new struct name 2025-02-11 21:55:20 +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
8105d35272 add losing when the next shape overlaps the current one (just a basic quit) 2025-02-11 11:51:24 +01:00
4ed4e9522f fix: not using renderer and timer directly 2025-02-11 11:45:58 +01:00
ecfe6b1452 add hardware acceleration 2025-02-11 11:45:28 +01:00
3b5b7bf15b add game times 2025-02-11 11:45:19 +01:00
5db3519a87 add audio looping 2025-02-11 10:45:44 +01:00
95daac90dd update audio player to use a linked list instead of an array. 2025-02-11 10:45:18 +01:00
9b98de0f89 increase memory safety of audio module & small optimisations 2025-02-10 17:21:29 +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
94ff2d200a add game music (very rudimentary and hacky) 2025-02-06 21:41:02 +01:00
67e34a0cb0 add font 2025-02-06 14:33:54 +01:00
65bc44ef12 add score increasement 2025-02-04 15:20:20 +01:00
319282b7c8 draw score text 2025-02-04 14:53:31 +01:00
9dad1a2db4 got text working 2025-02-04 14:11:40 +01:00
628f69330e fix: rect pointers are not created from a newly initialized rect 2025-02-04 13:58:11 +01:00
6b17086936 code cleanup + add font support 2025-02-04 13:54:28 +01:00
be09d57a27 use "const" where able to + random readability changes 2025-02-04 12:17:42 +01:00
c8d43d9564 tweak rendering 2025-02-04 10:38:25 +01:00
9cd45c2f20 fix: next shape is still shuffled 2025-02-04 10:34:39 +01:00
b3808a46a0 fix: next shape misaligned 2025-02-04 10:30:12 +01:00
bb8d9b47a2 fix: next shape is shuffled when shuffle is triggered 2025-02-04 10:15:55 +01:00
be800d2612 next block rendering 2025-02-03 16:24:12 +01:00
a9541812e0 reshape tetris window 2025-02-03 16:04:23 +01:00
9d648a747d rework rendering slightly to include a border 2025-02-03 15:59:33 +01:00
150e811bdd remove background 2025-02-03 15:32:08 +01:00
c546f78c4c use correct 8 bit colourspace instead of including alpha 2025-02-03 15:02:00 +01:00
49b3add8c5 add background colour 2025-02-03 14:23:49 +01:00
4a2fb359fb fix renderering to correctly determine width and height dynamically 2025-02-03 14:12:19 +01:00
df93300798 rework random shape selection 2025-02-03 14:05:53 +01:00
c21419480c make playfield width 10 columns 2025-02-03 13:21:00 +01:00