diff options
| author | Indrajith K L | 2025-11-05 01:50:32 +0530 |
|---|---|---|
| committer | Indrajith K L | 2025-11-05 01:50:32 +0530 |
| commit | 10c22d35678f96e722f25a12badca98febb2921e (patch) | |
| tree | fe71581d11747f32ceebb31839034d61e7a55614 /tools/ReiLua_API.lua | |
| parent | 2d565e5bcb0e2eab93d9d1bab520bbbaf7457a07 (diff) | |
| download | reilua-enhanced-10c22d35678f96e722f25a12badca98febb2921e.tar.gz reilua-enhanced-10c22d35678f96e722f25a12badca98febb2921e.tar.bz2 reilua-enhanced-10c22d35678f96e722f25a12badca98febb2921e.zip | |
Adds Game Jam Ready Templates & ReiLua API Updates
(Most of the code is Copilot Generated LOL)
Diffstat (limited to 'tools/ReiLua_API.lua')
| -rw-r--r-- | tools/ReiLua_API.lua | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tools/ReiLua_API.lua b/tools/ReiLua_API.lua index 1ba8b71..aac5bcb 100644 --- a/tools/ReiLua_API.lua +++ b/tools/ReiLua_API.lua @@ -9049,6 +9049,25 @@ function RL.GetKeyName( key, scancode ) end ---If the key is KEY_UNKNOWN or does not exist on the keyboard this method will return -1. ---- Success return int ---@param key integer ----@return any scancode +---@return any scancode function RL.GetKeyScancode( key ) end +-- ReiLua-Enhanced - Asset Loading System + +---Initialize asset loading progress tracking and show loading screen. +---Call this before loading assets to display a retro 1-bit style loading screen +---with progress bar, animated dots, and asset name display. +---@param totalAssets integer Total number of assets to load +function RL.BeginAssetLoading( totalAssets ) end + +---Update asset loading progress and display current asset being loaded. +---Call this after each asset is loaded to update the progress bar and counter. +---The loading screen will show the asset name and update the progress (e.g., "3/10"). +---@param assetName string Name of the asset currently being loaded (e.g., "player.png", "music.ogg") +function RL.UpdateAssetLoading( assetName ) end + +---Finish asset loading and hide the loading screen. +---Call this after all assets have been loaded to dismiss the loading UI +---and continue with your game initialization. +function RL.EndAssetLoading() end + |
