- minimap generation for debug

- gorro implemented
- objects implemented
This commit is contained in:
2022-10-27 18:51:56 +02:00
parent 75c38046d7
commit 1574809fe9
9 changed files with 115 additions and 51 deletions

21
gorro.lua Normal file
View File

@@ -0,0 +1,21 @@
gorro={hab=5,x=48,y=24,bb={x=0,y=0,w=8,h=8}}
function gorro.init()
local habs={11,11,11,11}
gorro.hab=habs[1+rnd(4)]
gorro.update=gorro.update
gorro.draw=gorro.draw
end
function gorro.draw()
sspr(96,32,16,16,gorro.x,gorro.y,16,16)
end
function gorro.update()
if gorro.hab==abad.hab then
if aabb(abad,gorro) then
abad.objects.gorro=true
remove_actor(gorro)
end
end
end