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
        end

        return false                
end

Mario vs Khabis

This game is part of a tutorial

Github source code:
https://github.com/peymanx/Mario-vs-Khabis

image

[8x8]
vs
[8x8]

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]

Follow Lexaloffle:          
Generated 2024-03-28 09:48:00 | 0.035s | Q:19