- Peu de Paco implemented

- GPS implemented
- Object system working
- minor changes to batman and gorro
This commit is contained in:
2022-10-27 19:49:14 +02:00
parent 814346d3a3
commit 5587c3bd72
6 changed files with 86 additions and 14 deletions

24
peu.lua Normal file
View File

@@ -0,0 +1,24 @@
peu={hab=5,x=48,y=24,bb={x=0,y=0,w=8,h=8}}
function peu.init()
local habs={{18,8},{16,2},{16,7},{15,5},{27,1},{27,10},{29,2},{38,8},{69,2},{79,3}}
local r=1+rnd(#habs)
peu.hab=habs[r][1]
peu.x=habs[r][2]*8
peu.update=peu.update
peu.draw=peu.draw
end
function peu.draw()
sspr(112,32,16,16,peu.x,peu.y,16,16)
end
function peu.update()
if peu.hab==abad.hab then
if aabb(abad,peu) then
abad.objects.peu=true
if abad.objects.gps~=nil then current_camera=4 end
remove_actor(peu)
end
end
end