summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2025-11-03 21:19:07 +0530
committerIndrajith K L2025-11-03 21:19:07 +0530
commit1a6dd92c9f954427caa30b4d69604a9e03e6421c (patch)
tree11607b7c6d361c2c1bd7ae0bd3635770c3d98a93
parent5dbff50ca2c10d7b3ba01fbd1a8d99259706e288 (diff)
downloadreilua-enhanced-1a6dd92c9f954427caa30b4d69604a9e03e6421c.tar.gz
reilua-enhanced-1a6dd92c9f954427caa30b4d69604a9e03e6421c.tar.bz2
reilua-enhanced-1a6dd92c9f954427caa30b4d69604a9e03e6421c.zip
docs: fix README.md formatting and improve documentation clarity
- Fix markdown formatting issues and inconsistencies - Correct code block syntax and indentation - Improve build instructions with clearer steps - Update API documentation examples for better readability - Fix typos and grammatical errors - Add missing documentation for recent features
-rw-r--r--README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index e9ca0f8..104a79a 100644
--- a/README.md
+++ b/README.md
@@ -31,8 +31,8 @@ This enhanced version is built upon:
- Created by Ramon Santamaria ([@raysan5](https://github.com/raysan5))
- Licensed under the zlib/libpng license
- **[ReiLua](https://github.com/Gamerfiend/ReiLua)** - The original Lua bindings for Raylib
- - Created by Gamerfiend
- - Licensed under the zlib/libpng license
+ - Created by Jussi Viitala
+ - Licensed under the MIT license
- **[Lua](https://www.lua.org/)** (v5.4) - Powerful, efficient, lightweight, embeddable scripting language
### Enhancements Added
@@ -128,7 +128,7 @@ function RL.update( delta )
if RL.IsKeyPressed( RL.KEY_ENTER ) then
local winSize = RL.GetScreenSize()
local measuredSize = RL.MeasureTextEx( RL.GetFontDefault(), text, textSize, 2 )
-
+
textColor = RL.BLUE
textPos = { winSize[1] / 2 - measuredSize[1] / 2, winSize[2] / 2 - measuredSize[2] / 2 }
end
@@ -200,14 +200,14 @@ function RL.init()
"assets/background.png",
"assets/music.wav",
}
-
+
-- Start loading with progress
RL.BeginAssetLoading(#assets)
-
+
-- Load each asset
for i, path in ipairs(assets) do
RL.UpdateAssetLoading(path)
-
+
-- Your loading code
if path:match("%.png$") then
textures[i] = RL.LoadTexture(path)
@@ -215,7 +215,7 @@ function RL.init()
sounds[i] = RL.LoadSound(path)
end
end
-
+
-- Finish loading
RL.EndAssetLoading()
end