[FIX] Ajustada caixa de col·lisió de elalien i el peu
[NEW] elalien s'orienta en la direcció de l'abad [NEW] Afegits mes 'monstruitos'
This commit is contained in:
+5
-1
@@ -18,7 +18,7 @@ elalien={name="elalien",
|
||||
wait=0,
|
||||
step=0,
|
||||
anim={8,9,8,10},
|
||||
bb={x=4,y=0,w=8,h=16},
|
||||
bb={x=8,y=0,w=16,h=23},
|
||||
scene_intro=false,
|
||||
scene_object=false}
|
||||
|
||||
@@ -99,6 +99,7 @@ end
|
||||
function elalien.update_stay()
|
||||
elalien.wait=elalien.wait+1
|
||||
|
||||
|
||||
if elalien.wait==18 then
|
||||
elalien.wait=0
|
||||
elalien.step=(elalien.step+1)%4
|
||||
@@ -109,6 +110,9 @@ function elalien.update_stay()
|
||||
end
|
||||
|
||||
if elalien.hab==abad.hab then
|
||||
|
||||
if elalien.x<abad.x then elalien.flip=false else elalien.flip=true end
|
||||
|
||||
if collision(abad,elalien) then
|
||||
if not elalien.scene_intro then
|
||||
if abad.objects.peu~=nil then
|
||||
|
||||
Reference in New Issue
Block a user