What's up guys
I made a video to explain how Lua works - in Persian
and this game is the result
only in 20min you can make a wonderful game
In Persian "khabis" means bad guy.
Khabis and mario try to get fruits and avoid bombs.
a simple senario and addictive game :)
![](/media/70430/mario_4.gif)
Collision Detection
In physics, a collision is any event in which two or more bodies exert forces on each other in a relatively short time.
![](/media/70430/197976201-d06dd44c-55da-4f20-abf3-6ded6d210fdc.gif)
function collision(a,b,x,y) if (a <= x and a+8 >=x or x <= a and x+8 >=a) and (b <= y and b+8 >=y or y <= b and y+8 >=b) then return true end return false end |
Mario vs Khabis
This game is part of a tutorial
Github source code:
https://github.com/peymanx/Mario-vs-Khabis
![](/media/70430/KHABIS.gif)
![](/media/70430/MARIO.gif)
![]() |
[8x8] |
![]() |
[8x8] |
P#119095 2022-10-14 12:30 ( Edited 2022-10-26 10:20)
[Please log in to post a comment]