40 lines
480 B
Lua
40 lines
480 B
Lua
function _init()
|
|
world_init()
|
|
playercontroler_init()
|
|
end
|
|
|
|
function _update()
|
|
world_update()
|
|
playercontroler_update()
|
|
end
|
|
|
|
function _draw()
|
|
cls(0)
|
|
map(0, 0, 0, 8, 64, 64)
|
|
camera(0,0)
|
|
draw_ressource_bar()
|
|
world_draw()
|
|
playercontroler_draw()
|
|
end
|
|
|
|
ressources =
|
|
{
|
|
fruits =
|
|
{
|
|
quantity = 5,
|
|
sprite = 33,
|
|
x = 70
|
|
},
|
|
money =
|
|
{
|
|
quantity = 100,
|
|
sprite = 35,
|
|
x = 0
|
|
},
|
|
jam =
|
|
{
|
|
quantity = 0,
|
|
sprite = 34,
|
|
x = 100
|
|
}
|
|
} |