From 10c22d35678f96e722f25a12badca98febb2921e Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Wed, 5 Nov 2025 01:50:32 +0530 Subject: Adds Game Jam Ready Templates & ReiLua API Updates (Most of the code is Copilot Generated LOL) --- tools/ReiLua_API.lua | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'tools') 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 + -- cgit v1.2.3