[WIP] Treballant en el jefe. Organitzant codi (Ha deixat de funcionar quasi tot)
[FIX] Els warps reutilitzats mantenien l'estat anterior [NEW] Funcio distancia(a, b)
This commit is contained in:
@@ -104,7 +104,7 @@ function abad:draw()
|
||||
if ((abad.x+abad.y)%12)==0 then abad.stairs_flip=not abad.stairs_flip end
|
||||
local msg = "-- "..abad.x.." "..abad.y
|
||||
if flip then msg = "FLIP"..abad.x.." "..abad.y end
|
||||
msg_print(0,35,msg,true)
|
||||
-- msg_print(0,35,msg,true)
|
||||
end
|
||||
if (abad.respawning==0) or (math.floor(abad.respawning/15)%2==0) then
|
||||
draw.surf(abad.frame*abad.w,0,abad.w,abad.h,x,y,abad.w,abad.h,flip)
|
||||
@@ -133,7 +133,7 @@ end
|
||||
|
||||
|
||||
function abad_hurt(howmuch)
|
||||
howmuch = 0
|
||||
-- howmuch = 0
|
||||
if abad.hurting == 0 and abad.respawning==0 then
|
||||
sound.play(audio_abad_hit)
|
||||
abad.energia=abad.energia-howmuch
|
||||
|
||||
Reference in New Issue
Block a user