- Peu de Paco implemented
- GPS implemented - Object system working - minor changes to batman and gorro
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
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)]
|
||||
local habs={{60,5},{4,5},{34,4},{62,7},{75,4}}
|
||||
local r=1+rnd(#habs)
|
||||
gorro.hab=habs[r][1]
|
||||
gorro.x=habs[r][2]*8
|
||||
gorro.update=gorro.update
|
||||
gorro.draw=gorro.draw
|
||||
end
|
||||
@@ -15,6 +17,7 @@ function gorro.update()
|
||||
if gorro.hab==abad.hab then
|
||||
if aabb(abad,gorro) then
|
||||
abad.objects.gorro=true
|
||||
if abad.objects.gps~=nil then current_camera=3 end
|
||||
remove_actor(gorro)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user