Commit Graph

28 Commits

Author SHA1 Message Date
ff6b282112 Added basic game save function, doesn't save much yet, but implements version comparison of binary saves for compatibility 2026-05-08 23:15:11 -04:00
0bd1ae1df8 Move music tracks out of akgl_Game to make it more suitable for serialization 2026-05-08 22:16:43 -04:00
e0a59e2447 Add types.h, standardize integer types on stdint 2026-05-08 22:01:56 -04:00
5dda86d887 Add properties registry. Start bounding defines with conditionals so users can change library allocation size. 2026-05-08 10:16:33 -04:00
a0b2dda4cf Rename library to AKGL (AKLabs Game Library) 2026-05-07 22:20:10 -04:00
359ae23414 Unify the library on an akgl_ namespace 2026-05-07 22:01:27 -04:00
f416cb5dee Fix bad pointer reference in SDL3G_controller_default 2026-05-06 23:05:17 -04:00
ef24d7b843 Add missing text header file 2026-05-06 22:49:05 -04:00
87a5b1da21 Add ability to push controls to a control map without having to manually track controlmap index IDs 2026-05-06 12:02:36 -04:00
c3847160da Added a font registry, a text rendering helper, and an FPS counter function 2026-05-06 11:12:42 -04:00
284ffd7b4a Fix missing sdl3game.pc for pkg-config, change sprite speed and character movement values to long int expressed in nanoseconds for better compatibility with SDL_Time and locking against game clock, still expressed as milliseconds in json 2026-05-05 20:40:25 -04:00
90cbf41d75 Added missing error include 2026-05-04 00:02:31 -04:00
6763b5629f Got the suite rebuilding, most tests pass, actor and sprite are failing 2026-05-03 23:57:55 -04:00
f475dfb6ee Move from 'libsdlerror' to 'libakerror' 2026-01-05 08:58:06 -05:00
7cff27f035 Added charviewer 2026-01-05 08:57:38 -05:00
0601a8d767 Add rebuild script to make my life easier 2025-08-09 13:54:42 -04:00
4b901886a2 Add GameControllerDB support 2025-08-09 13:53:37 -04:00
62ba23a1a0 Simplified SDL3GActor_cmhf_* functions 2025-08-09 09:28:28 -04:00
93bc3addfe actor_logic_changeframe was allowing frame counters to increment out of control leading to unpredictable behavior when changing state, animations would be outside their frame range 2025-08-09 08:59:52 -04:00
e20752a97e Improved control map handling 2025-08-08 22:39:48 -04:00
35621d8b4d Changed sprite and character loaders to use the explicit paths passed into them, and to use relative paths for assets referenced inside of spritesheets
Unfortunately 3 tests are broken. Lots of stuff still expects the old behavior (automatic path computation from the binary location on the filesystem)
2025-08-04 22:35:48 -04:00
9ecfc7dc42 Add charviewer utility for viewing character / sprite files 2025-08-04 21:37:36 -04:00
fb3ff6f2b3 Refactor gamepad to controller, introduce control maps and control map handling of actor states 2025-08-03 21:42:12 -04:00
77173e5fca Start moving game data into a fatty struct 2025-08-03 15:14:36 -04:00
0a386a6a67 Removed box2d physics because of linking problems (and nothing's using it yet). Also tests work now.
```
ln -s ../tests/assets build/assets
cd build
make test
```
2025-08-03 14:07:56 -04:00
9ebb0d50c9 Brought over TODO file from sdl3-gametest 2025-08-03 11:05:52 -04:00
ae697a178c Moved include files to a proper sdl3game include directory 2025-08-03 10:41:09 -04:00
5bd7803051 Exported libsdl3game from the sdl3-gametest demo project 2025-08-03 10:07:35 -04:00