[WIP] Lluita contra jefes.
+ Redisseny de mapa + Ajustada la vista abans del combat i fixada en la vertical [NEW] Objecte point
This commit is contained in:
14
data/imp.lua
14
data/imp.lua
@@ -50,7 +50,7 @@ function imp.new(_hab, _x, _y)
|
||||
step=0,
|
||||
hurting=0,
|
||||
jumpfwd=false,
|
||||
step_length=0.6,
|
||||
step_length=0.7,
|
||||
vmove_space=1,
|
||||
max_jump_height=24,
|
||||
jump_height=0,
|
||||
@@ -223,14 +223,8 @@ msg_print(0,0,"state_walking",true)
|
||||
|
||||
-- Limitar la velocitat de moviment
|
||||
self.wait=self.wait+1
|
||||
|
||||
-- representació del moviment
|
||||
-- if self.wait==6 then
|
||||
-- self.wait=0
|
||||
-- self.step=(self.step+1)%2
|
||||
-- self.frame=self.anim[self.step+1]
|
||||
-- end
|
||||
|
||||
-- representació del moviment
|
||||
-- Selecció de frame
|
||||
if self.wait==6 then
|
||||
self.wait=0
|
||||
@@ -258,8 +252,6 @@ function imp:state_falling()
|
||||
msg_print(0,0,"state_falling",true)
|
||||
self:reduce_cooldown()
|
||||
|
||||
-- print("state_falling")
|
||||
|
||||
self.frame=30
|
||||
self.wait=self.wait+1
|
||||
|
||||
@@ -380,8 +372,6 @@ msg_print(0,0,"move",true)
|
||||
|
||||
self.action = self:movement(abad)
|
||||
|
||||
-- print(action)
|
||||
|
||||
if self.action == "right" or self.action == "left" then
|
||||
self.update=imp.state_walking
|
||||
-- abad.flip=false
|
||||
|
||||
Reference in New Issue
Block a user