Log In  

Cart #mario_vs_khabis-1 | 2022-10-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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 :)

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.

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

        return false                

Mario vs Khabis

This game is part of a tutorial

Github source code:



P#119095 2022-10-14 12:30 ( Edited 2022-10-26 10:20)

I got a game over, @peymanx, but what was my score ?

P#119453 2022-10-22 16:40

[Please log in to post a comment]