[WIP] Treballant en el jefe. Almenys ja no explota, algo es algo
This commit is contained in:
@@ -66,11 +66,6 @@ function imp:pattern_recovery() -- OK
|
||||
return self.actions[self.path.actions[1].action]
|
||||
end
|
||||
|
||||
function imp:pattern_next_target()
|
||||
if DEBUG_FN_NAME then print("pattern_next_target") end
|
||||
self.target = self.hot_points[self.path.next]
|
||||
end
|
||||
|
||||
-------------------------------
|
||||
-- imp.controller_input()
|
||||
--
|
||||
@@ -79,14 +74,13 @@ end
|
||||
function imp:controller_input()
|
||||
if DEBUG_FN_NAME then print("controller_input") end
|
||||
|
||||
print(self.action)
|
||||
--To Do: JumpFWD
|
||||
if self.action == self.actions.right or self.action == self.actions.left then
|
||||
self.movement = self.action
|
||||
-- self.moure=imp.state_walking
|
||||
self:_moure(imp.state_walking, "state_walking (movement)")
|
||||
elseif self.action == self.actions.jump then
|
||||
-- self:do_jump()
|
||||
self:do_jump()
|
||||
elseif self.action == "jumpfwd" then
|
||||
-- self:do_jump(true)
|
||||
elseif self.action == self.actions.shot then
|
||||
|
||||
Reference in New Issue
Block a user