feat(enemy): els enemics poden disparar bales via tick d'IA
This commit is contained in:
@@ -15,10 +15,20 @@ physics:
|
||||
linear_damping: 0.0
|
||||
angular_damping: 0.0
|
||||
|
||||
behavior:
|
||||
# Hereta el comportament de Pentagon (zigzag esquivador).
|
||||
angle_change_max: 1.0
|
||||
zigzag_prob_per_second: 0.8
|
||||
ai:
|
||||
# Movement: zigzag esquivador (com Pentagon).
|
||||
movement:
|
||||
type: zigzag
|
||||
angle_change_max: 1.0
|
||||
zigzag_prob_per_second: 0.8
|
||||
# Accions periòdiques: cada ~2.5s dispara una bala apuntada al ship més proper.
|
||||
tick:
|
||||
- action: shoot
|
||||
interval: 2.5
|
||||
aim_mode: aimed # apunta al ship més proper (atan2)
|
||||
jitter_rad: 0.0 # sense soroll: tret perfecte
|
||||
bullet: bullet_long # variant més visible per al jugador
|
||||
bullet_speed: 150.0 # px/s — prou lenta per reaccionar
|
||||
|
||||
animation:
|
||||
pulse:
|
||||
|
||||
Reference in New Issue
Block a user