[WIP] Treballant en el jefe. La que s'està liant...
This commit is contained in:
@@ -162,7 +162,7 @@ function imp.new(_hab,_x,_y)
|
||||
actions={no_action=0, up=1, down=2, left=4, right=8, jump=16, shot=32, super=64},
|
||||
moods={stop=0, chase=1, avoid=2, neutral=4},
|
||||
mood=0, --anterior fight_mode
|
||||
timers={mood=150,target=150, shot=2500, super=20000, flip_wait=50}, --anterior *_cooldown
|
||||
timers={mood=150,target=250, shot=2500, super=20000, flip_wait=50}, --anterior *_cooldown
|
||||
move_types={free=0, pattern=1, super=2},
|
||||
move_type=1, -- anterior movement_type
|
||||
|
||||
@@ -214,6 +214,7 @@ function imp.new(_hab,_x,_y)
|
||||
shot = imp.shot,
|
||||
advance=imp.advance,
|
||||
jump=imp.jump,
|
||||
reset_target_timer=imp.reset_target_timer,
|
||||
_moure=imp._moure, -- temporal debug
|
||||
|
||||
}
|
||||
@@ -289,16 +290,18 @@ print("-------------------------------------------------")
|
||||
print("")
|
||||
if self.mood~=self.moods.stop then print("TARGET= "..self.pattern:target()) end
|
||||
if self.mood~=self.moods.stop then print("ACTIONS= "..#self.pattern:actions()) end
|
||||
print("TARGET TIMER= "..self.timers.target)
|
||||
self:reduce_timers()
|
||||
|
||||
-- Ajustar mood (emocions)
|
||||
self:choose_mood()
|
||||
-- self:choose_mood()
|
||||
|
||||
-- self:choose_target()
|
||||
|
||||
-- analisis
|
||||
self:analyze_env()
|
||||
|
||||
-- decisio
|
||||
self:choose_target()
|
||||
self:choose_action()
|
||||
|
||||
-- moviment
|
||||
@@ -461,7 +464,7 @@ end
|
||||
|
||||
function imp:reset_target_timer( value ) -- OK
|
||||
if DEBUG_FN_NAME then print("reset_target_timer") end
|
||||
value = value or 150
|
||||
value = value or 250
|
||||
self.timers.target = value
|
||||
return value
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user