Commit Graph

192 Commits

Author SHA1 Message Date
45e5ec9764 begin adding options
added the basic framework of how options are loaded.
2025-04-23 16:45:59 +02:00
45d4f91bd9 write code to improve handling of paths, to be more consistent.
I don't think I want to place the local data paths there...
2025-04-23 16:45:59 +02:00
2ef2586112 add more nuanced platform flags to faccess 2025-04-19 18:14:48 +02:00
c01ce06307 add macros for writing inline platform-specific expressions 2025-04-19 18:14:48 +02:00
abbb43ab50 expand compatibility header to include path seperators 2025-04-19 18:11:29 +02:00
e1915429ca move pkg-config usage to be inside architecture definitions 2025-04-18 21:23:24 +02:00
76762dcc8e rename ARCH options to x86, rather than x86_64, since that's more accurate now 2025-04-18 21:23:24 +02:00
6583a9f5e0 fix: include -fuse-ld for windows to handle dll's properly 2025-04-18 21:23:24 +02:00
1b36a53b24 fix: remove duplicate architecture argument setting 2025-04-18 21:23:24 +02:00
da59b64a0b move compatibility code for file access from audio.c to compat.h 2025-04-18 21:23:24 +02:00
5145e43eaa make rotation movement seperate from regular movement
rotation often happens too fast and regular movement often happens too
slow.
Hence the split
2025-04-17 09:59:30 +02:00
38cb8011ef move timer data to static variables in the update function, rather than storing it in the gamedata. 2025-04-17 09:53:07 +02:00
1ee8c69d1b don't use exact integer types where it's not necessary 2025-04-17 09:45:27 +02:00
4bba7bda9f rework error.h
added nonnull attributes, removed gamestatus and other integers which
don't need an exact type, added restrict to all the pointers.
2025-04-16 16:44:01 +02:00
b2e2089a59 improve makefile 2025-04-16 16:42:57 +02:00
86b1d9a617 make font loading not required for the application to execute. 2025-04-16 16:19:47 +02:00
db98a96b87 execute program in 32 bit mode, as we don't need that wide of an adress space 2025-04-16 15:03:04 +02:00
17a7502003 don't store the rows on the heap; it works just fine on the stack 2025-04-16 14:28:31 +02:00
271d4e47d4 semantic fix: include headers directly 2025-04-16 14:17:53 +02:00
0599b7e9fe fix: make gametime compillable for windows 2025-04-16 14:17:37 +02:00
a2ab7da423 fix: run target correctly sets the working directory 2025-04-16 14:06:27 +02:00
ef527ec640 fix: memory leak due to not unloading the audio 2025-04-16 14:05:59 +02:00
1b384af8e9 improved safety of renderer 2025-04-16 11:54:06 +02:00
0df7730838 fix: include header file directly and remove unused include 2025-03-25 12:02:02 +01:00
646629adc1 fix: use the audio device's channels, rather than the source's channels
yes, I know this is dumb, I knew something was wrong when I had to do it
that way, but I was dumb. Now... I'm still dumb, just slightly more
knowledgable.
2025-03-25 12:02:02 +01:00
9d41a2a65b fix: move the S->MS conversion to the total bytesize, instead of it being the last operation.
due to if small audio fragments are divided trough integer division,
they'll evaluate to 0 miliseconds, which is inaccurate.
2025-03-25 12:02:02 +01:00
6aa4840777 improve comments for audio milliseconds computation 2025-03-25 12:02:02 +01:00
8bbcd29c56 add place sound effect 2025-03-25 12:02:02 +01:00
293a211d55 add "BUG:" comment 2025-03-25 12:02:02 +01:00
8a3245cd71 whitespace fix 2025-03-25 12:02:02 +01:00
77b0eb5a98 fix: use cvt.len_cvt for new length instead of cvt.len 2025-03-25 12:02:02 +01:00
a1dcb0a734 improve comments and error messages 2025-03-25 12:02:02 +01:00
54d3eb5785 fix: not checking SDL_BuildAduiCVT in case it failed 2025-03-25 12:02:02 +01:00
fbcc2984e9 make inputs less sensitive 2025-03-25 12:02:02 +01:00
f72949dc38 use new time system rather than the badly written old one 2025-03-22 23:51:51 +01:00
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