Commit Graph

54 Commits

Author SHA1 Message Date
Ulysse Cura e0e0587a16 Using global game instance instead of passing as an arg. 2026-08-14 17:23:32 +02:00
Ulysse Cura 827b52dcb8 Moved texture destroy func into texture.c. 2026-08-14 17:22:34 +02:00
Ulysse Cura 4a93ca2a9d Renamed asset manager get asset function. 2026-08-14 16:52:45 +02:00
Ulysse Cura 1fa9d1cb87 Separated texture type from asset manager for other asset types. 2026-08-14 16:41:45 +02:00
Ulysse Cura 46f13015d5 Remove useless includes. 2026-08-14 16:41:15 +02:00
Ulysse Cura c71af2e803 Added event bus unsubscribe function. 2026-08-13 19:02:55 +02:00
Ulysse Cura 2860380395 Added error trace. 2026-08-13 17:55:40 +02:00
Ulysse Cura ea7f745313 Adding linked list insertion sort and sorting entities by draw priority. 2026-08-11 11:13:03 +02:00
Ulysse Cura 67c5c18fa2 Added subscription data to event bus. 2026-08-10 20:58:02 +02:00
Ulysse Cura 5d902de564 Corrected event bus event handling : removed events history. 2026-08-10 18:22:45 +02:00
Ulysse Cura 3605aeee27 Added a non-variadic version of linked_list_for_each. 2026-08-10 18:21:52 +02:00
Ulysse Cura 2e180b6832 Working event bus. 2026-08-10 12:38:15 +02:00
Ulysse Cura 571bb9699d Implemented event bus. 2026-08-10 00:47:21 +02:00
Ulysse Cura c57cfea7f7 Removed useless code. 2026-08-10 00:47:04 +02:00
Ulysse Cura abf1231aac Renamed inputs structs. 2026-08-10 00:11:29 +02:00
Ulysse Cura 2179c7eb94 Remaping keys and adding interaction key. 2026-08-09 14:10:19 +02:00
Ulysse Cura a8aacc04ef Generalized assets data. 2026-08-08 20:15:22 +02:00
Ulysse Cura 24d2ac6564 Adding const identifiers. 2026-08-06 13:49:33 +02:00
Ulysse Cura 1f3a17a465 Corrected other sdl function names. 2026-08-04 21:53:08 +02:00
Ulysse Cura d648bcbb9b Adding const to entity get component. 2026-08-04 21:02:13 +02:00
Ulysse Cura a4b970636b Fixed SDL3 functions names. 2026-08-04 21:01:55 +02:00
Ulysse Cura 34ee7e2a57 Remove excesive explicity. 2026-08-04 20:34:01 +02:00
Ulysse Cura b63a67eb84 Add lerp function. 2026-08-04 19:48:11 +02:00
Ulysse Cura e6d363c0b2 Changing texture display dst rect to frect. 2026-08-04 19:47:42 +02:00
Ulysse Cura 3e341a0cf4 Adding blend mode to renderer. 2026-08-03 23:34:37 +02:00
Ulysse Cura 449bf60160 Moved display functions to display.h/.c. 2026-08-03 23:29:27 +02:00
Ulysse Cura 7f66cb4172 Added more debug options. 2026-08-03 20:45:42 +02:00
Ulysse Cura 4dbee83e8d Added a linked list exit function for reserved elements and documented unsafe functions. 2026-08-03 19:20:01 +02:00
Ulysse Cura 60dbab0fd5 Made drivers warning not show if DRIVERS is NULL. 2026-08-03 19:00:25 +02:00
Ulysse Cura 98fac079c6 Renaming inputs sources. 2026-08-03 18:59:55 +02:00
Ulysse Cura b1dd9baf98 Added a reserve function to linked lists. This came along an allocator function and better memory management. Elements and error handling has exploded everywere, that's why there is so much changes. 2026-07-30 17:59:14 +02:00
Ulysse Cura 4b5babd9b9 Moved DRIVERS variable into display.h. 2026-07-30 17:49:12 +02:00
Ulysse Cura 457de07ecb Linked lists error handling and consequences 💀 2026-07-26 14:37:38 +02:00
Ulysse Cura 8b37fc78fa Added MOD key modifier. 2026-07-26 14:00:40 +02:00
Ulysse Cura d60953e1e2 Added assertions. 2026-07-26 12:25:08 +02:00
Ulysse Cura ad5c3a8d44 Removed memory leak due to nvidia drivers... 2026-07-26 01:45:53 +02:00
Ulysse Cura 54b15900b2 Updated to SDL3. 2026-07-25 02:00:44 +02:00
Ulysse Cura 0524f6ada9 Removed C99 iso warning. 2026-07-25 00:39:53 +02:00
Ulysse Cura 2e1eaf4c1c Moved ecs.c into core and added much better error and debug handling. 2026-07-24 03:23:03 +02:00
Ulysse Cura 9b6ac3c145 Displaying background in white for better lisibility. 2026-07-22 16:10:40 +02:00
Ulysse Cura 91709bfacc Inlined display functions. 2026-07-22 15:37:43 +02:00
Ulysse Cura 58f16dfcae Asset manager can load and display images. 2026-07-22 02:43:43 +02:00
Ulysse Cura 40ce153123 Started to implement asset manager for textures. 2026-07-21 01:44:24 +02:00
Ulysse Cura 9f1355db52 More explicit notation. 2026-07-21 01:43:54 +02:00
Ulysse Cura 7121b6d084 Adding the rect_to_frect function. 2026-07-21 00:26:25 +02:00
Ulysse Cura 520a846892 Using the asset manager to load and store all types of assets. 2026-07-20 21:23:54 +02:00
Ulysse Cura 2665ccdbc3 Added header file for stddef's size_t in linked_list.h. 2026-07-18 00:02:04 +02:00
Ulysse Cura 74679a69f1 Correcting compilation error du to moving to NixOS. 2026-07-16 22:41:17 +02:00
Ulysse Cura 0eff35ebac Removed libtar and changed default background color to black. 2026-06-12 17:20:05 +02:00
Ulysse Cura 88177a4a25 Removed fabs overwrite. 2026-06-12 17:19:18 +02:00