[WIP] Lluita contra jefes. Càrrega de fase redefinida
This commit is contained in:
10
data/imp.lua
10
data/imp.lua
@@ -21,7 +21,8 @@ imp={hab=75,
|
||||
anim={28,29,28,30},
|
||||
bb={x=4,y=0,w=16,h=32},
|
||||
scene_intro=false,
|
||||
scene_object=false}
|
||||
scene_object=false,
|
||||
mode="stop"}
|
||||
|
||||
function imp.reset()
|
||||
imp.hit=imp.hit
|
||||
@@ -83,6 +84,13 @@ function imp.hit()
|
||||
end
|
||||
|
||||
function imp.update()
|
||||
if mode=="chase" then
|
||||
if abad.x<imp.x then
|
||||
imp.x=imp.x-1
|
||||
elseif abad.x>imp.x then
|
||||
imp.x=imp.x+1
|
||||
end
|
||||
end
|
||||
-- imp.wait=imp.wait+1
|
||||
--
|
||||
-- if imp.wait==6 then
|
||||
|
||||
Reference in New Issue
Block a user