[WIP] Treballant en el jefe. Tram final
This commit is contained in:
@@ -38,13 +38,14 @@ function fireball.draw()
|
||||
draw.circf(scr_x,scr_y,8*fireball.size,16)
|
||||
draw.circf(scr_x,scr_y,6*fireball.size,3)
|
||||
draw.circf(scr_x,scr_y,2*fireball.size,8)
|
||||
-- draw.rect(scr_x-5*fireball.size,scr_y-5*fireball.size,5*fireball.size*2,5*fireball.size*2,2)
|
||||
end
|
||||
|
||||
function fireball.update()
|
||||
if fireball.power==2 and fireball.power>fireball.size then
|
||||
fireball.wait = fireball.wait + 1
|
||||
fireball.x1=abad.x+abad.bb.x+(abad.bb.w//2)
|
||||
fireball.y1=abad.y
|
||||
fireball.y1=abad.y+(abad.bb.h/2)
|
||||
if abad.x<fireball.x then
|
||||
fireball.step_length_x = -1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user