From 05eaafb79e6fa1bebff157e94563334d7ead700b Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 20 Nov 2023 21:04:53 +0200 Subject: Initial changes for Raylib 5.0 and some missing functions. --- examples/platformer/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/platformer/main.lua') 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 -- cgit v1.2.3