abdelrahman
d85bfc0f01
Add load_asset_from_pack function
2023-11-04 22:29:07 +00:00
abdelrahman
c60a9e6507
Rename load_asset to load_asset_from_file
2023-11-04 22:16:10 +00:00
abdelrahman
b74f7c6e3a
Add DEBUG_ENGINE as compile definition instead of using build_config
2023-11-04 22:11:54 +00:00
abdelrahman
5c0f2702ae
Update CMakeLists.txt
2023-11-04 19:38:16 +00:00
abdelrahman
533d30359d
Add asset pack reader library
2023-11-04 14:29:54 +00:00
abdelrahman
a2cd38d5b6
Add function to retrieve the Android data path
2023-10-01 20:54:01 +01:00
abdelrahman
2d5719fc64
Conditionally compile BitmapFont for Anroid
2023-10-01 15:52:03 +01:00
abdelrahman
bfe6d48527
Fix text rendering with bitmap fonts
2023-10-01 15:38:15 +01:00
abdelrahman
0e18dd0705
Expose bitmap font rendering in the GameEngine API
2023-10-01 15:21:12 +01:00
abdelrahman
fe427689cf
Add support for rendering text with a bitmap font
2023-10-01 15:20:59 +01:00
abdelrahman
7ec35a0b27
Add basic implementation for bitmap font
2023-10-01 01:09:23 +01:00
abdelrahman
918de7bce0
Fix cppcheck errors
2023-08-06 22:13:14 +01:00
abdelrahman
866aaa9011
Make object pointer const in object_exist function
2023-08-06 22:12:52 +01:00
abdelrahman
475cd59e45
Make renderer pointer const in load_asset_to_manager
2023-08-06 22:11:56 +01:00
abdelrahman
e0d4e5b431
Add function to exit the game
2023-08-05 23:34:50 +01:00
abdelrahman
1021b368a5
Remove handling Android back button from the engine
2023-08-05 16:58:37 +01:00
abdelrahman
6d3440ba1f
Added support to exit a game on Android device when Back button is
...
clicked
2023-02-12 23:05:33 +00:00
abdelrahman
ad88083f53
Added min and max functions for floats and modified the text rendering code
2023-02-05 16:04:49 +00:00
abdelrahman
d429262aaa
Modified the text rendering functions to allow for clipping the text
2023-02-04 18:47:02 +00:00
abdelrahman
76875ed81f
Cleanup work
2023-02-03 00:15:07 +00:00
abdelrahman
62d7c6d54e
Moved FontDirection enum to Renderer.h
2023-02-01 00:00:43 +00:00
abdelrahman
79944cfa13
Added variables to build SDL2_ttf with HarfBuzz and added functions to
...
the engine to support defining the text direction and script name
2023-01-31 23:51:43 +00:00
abdelrahman
e04effec37
Switched the engine to use SDL2_ttf UTF-8 text capabilities
2023-01-31 23:10:53 +00:00
abdelrahman
0339db22dd
Renamed close_asset to unload_asset
2023-01-23 00:40:00 +00:00
abdelrahman
fc94efcc46
Fixed bugs with the add_object_to_store and remove_object_from_store
...
functions
2023-01-02 22:49:20 +00:00
abdelrahman
149a1180d1
Fixed a bug with the ObjectStore which would have caused some objects to
...
be ignored when running the game-loop functions.
2023-01-02 21:06:09 +00:00
abdelrahman
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.
2023-01-02 20:44:16 +00:00
abdelrahman
681fa2a5dc
Reorganised the ObjectStore and AssetManager files
2023-01-02 13:08:24 +00:00
abdelrahman
24a86ba6e3
Added API functions for modulating the colour and alpha of a texture
2022-12-30 00:44:49 +00:00
abdelrahman
b95cff5f0c
Updated the aliases and switched from u64 to size_t in the for loops
2022-12-24 00:44:31 +00:00
abdelrahman
e1806bafc2
Updated the init_window function to use SDL_WINDOW_FULLSCREEN
...
instead of SDL_WINDOW_FULLSCREEN_DESKTOP
2022-12-21 22:24:47 +00:00
abdelrahman
5aa475c577
Update GameEngine.c
2022-12-04 00:08:30 +00:00
abdelrahman
5e6211c2a9
Added aliases with sizes for the integer and floating-point numbers
2022-11-27 15:04:34 +00:00
abdelrahman
45f6021f82
Switched the engine to use a fixed delta in debug mode
2022-11-26 20:15:22 +00:00
abdelrahman
b2f4c60e14
Renamed the Engine library to Punchie
2022-10-31 00:09:16 +00:00
abdelrahman
8a4697e121
Improved text rendering and fixed a bug with the texture rendering
2022-10-28 00:40:29 +01:00
abdelrahman
4659a4cd49
Added function that returns the current time in milliseconds
2022-10-25 00:57:59 +01:00
abdelrahman
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.
2022-10-17 00:27:52 +01:00
abdelrahman
a87eba8db7
Added ability to draw a non-filled rectangle
2022-10-09 04:50:28 +01:00
abdelrahman
c1659dcf88
Fixed an issue with clipping the render rectangle
2022-10-05 23:41:13 +01:00
abdelrahman
2eb8d83dc0
Added support for rendering on Android devices
2022-10-02 20:24:00 +01:00
abdelrahman
e110b1f2fd
Added support for desktop full screen with pillarboxing and letterboxing
...
and started adding some comments to the code
2022-10-02 02:16:28 +01:00
abdelrahman
ffaa6e5ae7
Started working on figuring out how to properly support full screen and
...
high DPI
2022-09-25 23:31:53 +01:00
abdelrahman
dbc8c88b89
Added ability to open, close and render fonts
2022-09-25 15:58:54 +01:00
abdelrahman
e3f4f9c94f
Implemented load audio and music files as well the basic audio playback
...
functionality.
2022-09-25 02:19:21 +01:00
abdelrahman
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.
2022-09-24 04:17:16 +01:00
abdelrahman
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
2022-09-23 04:39:17 +01:00
abdelrahman
c4f1775392
Implemented the core functionality of the ObjectStore and started
...
implementing the functionality for the AssetManager
2022-09-22 01:56:21 +01:00
abdelrahman
79f28100bd
Modified the ObjectStore and the Hashmap and added the ObjectStore to
...
the GameManager
2022-09-21 19:55:45 +01:00
abdelrahman
a0e76bc1fc
Implemented the ObjectStore functionality.
2022-09-19 23:44:31 +01:00