- Reestructuració
This commit is contained in:
20
data/bol.lua
Normal file
20
data/bol.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
bol={hab=39,x=28,y=25,bb={x=0,y=0,w=16,h=8}}
|
||||
|
||||
function bol.init()
|
||||
bol.update=bol.update
|
||||
bol.draw=bol.draw
|
||||
end
|
||||
|
||||
function bol.draw()
|
||||
sspr(112,88,16,8,bol.x,bol.y,16,8)
|
||||
end
|
||||
|
||||
function bol.update()
|
||||
if bol.hab==abad.hab then
|
||||
if aabb(abad,bol) then
|
||||
abad.objects.bol=true
|
||||
start_scene(scenes.bol_trobat)
|
||||
remove_actor(bol)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user