summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorjussi2023-11-20 21:04:53 +0200
committerjussi2023-11-20 21:04:53 +0200
commit05eaafb79e6fa1bebff157e94563334d7ead700b (patch)
tree574ae0af685967df067efe11058dc50478558333 /examples
parent7765a23a2c90e6d02f6278eed1b1b9b9375bc941 (diff)
downloadreilua-enhanced-05eaafb79e6fa1bebff157e94563334d7ead700b.tar.gz
reilua-enhanced-05eaafb79e6fa1bebff157e94563334d7ead700b.tar.bz2
reilua-enhanced-05eaafb79e6fa1bebff157e94563334d7ead700b.zip
Initial changes for Raylib 5.0 and some missing functions.
Diffstat (limited to 'examples')
-rw-r--r--examples/platformer/main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/platformer/main.lua b/examples/platformer/main.lua
index 4c884f8..b599b41 100644
--- a/examples/platformer/main.lua
+++ b/examples/platformer/main.lua
@@ -94,7 +94,8 @@ function RL.init()
end
local function isTileWall( pos )
- if RL.CheckCollisionPointRec( { pos.x, pos.y }, { 0, 0, tilemap.size.x - 1, tilemap.size.y - 1 } ) then
+ -- if RL.CheckCollisionPointRec( { pos.x, pos.y }, { 0, 0, tilemap.size.x - 1, tilemap.size.y - 1 } ) then
+ if RL.CheckCollisionPointRec( { pos.x, pos.y }, { 0, 0, tilemap.size.x, tilemap.size.y } ) then
return 0 < tilemap.tiles[ pos.x + 1 ][ pos.y + 1 ]
else
return false