Commit Graph

  • d2f1c932e5 Update README main abdelrahman 2026-10-29 00:13:02 +00:00
  • 2de3e9b4df Build libpakrd with cmake instead of using it as prebuilt library abdelrahman 2023-11-05 19:15:56 +00:00
  • c5dd826c66 Support loading bitmap fonts from an asset pack abdelrahman 2023-11-05 19:15:16 +00:00
  • ab18f92fe5 Fix bug with calculating delta in release build abdelrahman 2023-11-05 02:22:07 +00:00
  • 8f141e4c67 Ensure libpakrd.so is installed abdelrahman 2023-11-05 02:21:51 +00:00
  • 0057135a05 Copy libpakrd.so to outputs abdelrahman 2023-11-05 02:21:21 +00:00
  • fdc5ba4020 Update pakrd abdelrahman 2023-11-05 02:21:04 +00:00
  • d85bfc0f01 Add load_asset_from_pack function abdelrahman 2023-11-04 22:29:07 +00:00
  • c60a9e6507 Rename load_asset to load_asset_from_file abdelrahman 2023-11-04 22:16:10 +00:00
  • b74f7c6e3a Add DEBUG_ENGINE as compile definition instead of using build_config abdelrahman 2023-11-04 22:11:54 +00:00
  • 5c0f2702ae Update CMakeLists.txt abdelrahman 2023-11-04 19:38:16 +00:00
  • 533d30359d Add asset pack reader library abdelrahman 2023-11-04 14:29:54 +00:00
  • a2cd38d5b6 Add function to retrieve the Android data path abdelrahman 2023-10-01 20:54:01 +01:00
  • 2d5719fc64 Conditionally compile BitmapFont for Anroid abdelrahman 2023-10-01 15:52:03 +01:00
  • bfe6d48527 Fix text rendering with bitmap fonts abdelrahman 2023-10-01 15:38:15 +01:00
  • 0e18dd0705 Expose bitmap font rendering in the GameEngine API abdelrahman 2023-10-01 15:21:12 +01:00
  • fe427689cf Add support for rendering text with a bitmap font abdelrahman 2023-10-01 15:20:59 +01:00
  • 7ec35a0b27 Add basic implementation for bitmap font abdelrahman 2023-10-01 01:09:23 +01:00
  • 918de7bce0 Fix cppcheck errors abdelrahman 2023-08-06 22:13:14 +01:00
  • 866aaa9011 Make object pointer const in object_exist function abdelrahman 2023-08-06 22:12:52 +01:00
  • 475cd59e45 Make renderer pointer const in load_asset_to_manager abdelrahman 2023-08-06 22:11:56 +01:00
  • e0d4e5b431 Add function to exit the game abdelrahman 2023-08-05 23:34:50 +01:00
  • 1021b368a5 Remove handling Android back button from the engine abdelrahman 2023-08-05 16:58:37 +01:00
  • 6d3440ba1f Added support to exit a game on Android device when Back button is clicked abdelrahman 2023-02-12 23:05:33 +00:00
  • ad88083f53 Added min and max functions for floats and modified the text rendering code abdelrahman 2023-02-05 16:04:49 +00:00
  • d429262aaa Modified the text rendering functions to allow for clipping the text abdelrahman 2023-02-04 18:47:02 +00:00
  • 76875ed81f Cleanup work abdelrahman 2023-02-03 00:15:07 +00:00
  • 62d7c6d54e Moved FontDirection enum to Renderer.h abdelrahman 2023-02-01 00:00:43 +00:00
  • 79944cfa13 Added variables to build SDL2_ttf with HarfBuzz and added functions to the engine to support defining the text direction and script name abdelrahman 2023-01-31 23:51:43 +00:00
  • e04effec37 Switched the engine to use SDL2_ttf UTF-8 text capabilities abdelrahman 2023-01-31 23:10:53 +00:00
  • 0339db22dd Renamed close_asset to unload_asset abdelrahman 2023-01-23 00:40:00 +00:00
  • fc94efcc46 Fixed bugs with the add_object_to_store and remove_object_from_store functions abdelrahman 2023-01-02 22:49:20 +00:00
  • 149a1180d1 Fixed a bug with the ObjectStore which would have caused some objects to be ignored when running the game-loop functions. abdelrahman 2023-01-02 21:06:09 +00:00
  • be547b00ed Added check to make sure the user passes at least one function pointer when adding an object to the store. Otherwise, the object isn't added. abdelrahman 2023-01-02 20:44:16 +00:00
  • 681fa2a5dc Reorganised the ObjectStore and AssetManager files abdelrahman 2023-01-02 13:08:24 +00:00
  • 24a86ba6e3 Added API functions for modulating the colour and alpha of a texture abdelrahman 2022-12-30 00:44:49 +00:00
  • b95cff5f0c Updated the aliases and switched from u64 to size_t in the for loops abdelrahman 2022-12-24 00:44:31 +00:00
  • e1806bafc2 Updated the init_window function to use SDL_WINDOW_FULLSCREEN instead of SDL_WINDOW_FULLSCREEN_DESKTOP abdelrahman 2022-12-21 22:24:47 +00:00
  • 5aa475c577 Update GameEngine.c abdelrahman 2022-12-04 00:08:30 +00:00
  • 5e6211c2a9 Added aliases with sizes for the integer and floating-point numbers abdelrahman 2022-11-27 15:04:34 +00:00
  • 45f6021f82 Switched the engine to use a fixed delta in debug mode abdelrahman 2022-11-26 20:15:22 +00:00
  • b2f4c60e14 Renamed the Engine library to Punchie abdelrahman 2022-10-31 00:09:16 +00:00
  • 8a4697e121 Improved text rendering and fixed a bug with the texture rendering abdelrahman 2022-10-28 00:40:29 +01:00
  • 4659a4cd49 Added function that returns the current time in milliseconds abdelrahman 2022-10-25 00:57:59 +01:00
  • cc052ed02c Fixed a small bug in the clip render rect function where it doesn't check to make sure the src rect pointer isn't NULL. abdelrahman 2022-10-17 00:27:52 +01:00
  • a87eba8db7 Added ability to draw a non-filled rectangle abdelrahman 2022-10-09 04:50:28 +01:00
  • c1659dcf88 Fixed an issue with clipping the render rectangle abdelrahman 2022-10-05 23:41:13 +01:00
  • 2eb8d83dc0 Added support for rendering on Android devices abdelrahman 2022-10-02 20:24:00 +01:00
  • e110b1f2fd Added support for desktop full screen with pillarboxing and letterboxing and started adding some comments to the code abdelrahman 2022-10-02 02:16:28 +01:00
  • ffaa6e5ae7 Started working on figuring out how to properly support full screen and high DPI abdelrahman 2022-09-25 23:31:53 +01:00
  • dbc8c88b89 Added ability to open, close and render fonts abdelrahman 2022-09-25 15:58:54 +01:00
  • e3f4f9c94f Implemented load audio and music files as well the basic audio playback functionality. abdelrahman 2022-09-25 02:19:21 +01:00
  • dfee36ffe9 Enabled SDL_image's support for PNG and TIFF files and improved the AssetManager with a hashing function, a linked list structure to store the hashes as well as a reference counter to support multiple users sharing the same asset. abdelrahman 2022-09-24 04:17:16 +01:00
  • 3f71cf0f3f Connected the AssetManager to the GameEngine and added function in the GameEngine API to allow for loading and removing assets as well as rendering textures using their AssetID abdelrahman 2022-09-23 04:39:17 +01:00
  • c4f1775392 Implemented the core functionality of the ObjectStore and started implementing the functionality for the AssetManager abdelrahman 2022-09-22 01:56:21 +01:00
  • 79f28100bd Modified the ObjectStore and the Hashmap and added the ObjectStore to the GameManager abdelrahman 2022-09-21 19:55:45 +01:00
  • a0e76bc1fc Implemented the ObjectStore functionality. abdelrahman 2022-09-19 23:44:31 +01:00
  • 20f476c4ab Started implementing a hashmap that includes tags for the all the game objects. abdelrahman 2022-09-12 01:28:29 +01:00
  • 6b1197bfca Started working on the ObjectStore abdelrahman 2022-09-11 01:20:16 +01:00
  • 33066b381e Created the Window and Renderer and started implementing the functions for the game loop abdelrahman 2022-09-10 22:17:58 +01:00
  • a0d8b75c11 Updated engine.c abdelrahman 2022-09-08 23:57:40 +01:00
  • 0abbb8133a Added helper scripts to configure, compile and install using cmake abdelrahman 2022-09-08 23:56:01 +01:00
  • d637e4497b Added engine.h abdelrahman 2022-09-08 23:49:48 +01:00
  • d402e0da04 Added SDL dependencies as Git submodules abdelrahman 2022-09-08 23:44:36 +01:00
  • 9cd658a1d3 INITIAL COMMIT abdelrahman 2022-09-08 22:55:44 +01:00