70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
name: pinwheel
|
|
ai_type: pinwheel # Validat contra el directori; mapeja a EnemyType::PINWHEEL.
|
|
|
|
shape:
|
|
path: enemy_pinwheel.shp
|
|
scale: 1.0 # multiplicador visual + hitbox sobre la mida nativa del .shp
|
|
collision_factor: 1.0 # ajust opcional del hitbox (default 1.0)
|
|
|
|
physics:
|
|
mass: 4.0 # Més lleuger — àgil
|
|
speed: 50.0 # px/s (el més ràpid)
|
|
rotation_delta_min: 3.0 # rad/s — rotació base elevada
|
|
rotation_delta_max: 6.0
|
|
restitution: 1.0
|
|
linear_damping: 0.0
|
|
angular_damping: 0.0
|
|
|
|
behavior:
|
|
# Pinwheel: movement rectilíniauniforme + boost de rotació visual prop de la nau.
|
|
rotation_proximity_multiplier: 3.0 # Multiplicador de rotació quan és prop de la nau
|
|
proximity_distance: 100.0 # Llindar de distància (px)
|
|
|
|
animation:
|
|
pulse:
|
|
trigger_prob_per_second: 0.01
|
|
duration_min: 1.0
|
|
duration_max: 3.0
|
|
amplitude_min: 0.08
|
|
amplitude_max: 0.20
|
|
frequency_min: 1.5
|
|
frequency_max: 3.0
|
|
rotation_accel:
|
|
trigger_prob_per_second: 0.02
|
|
duration_min: 3.0
|
|
duration_max: 8.0
|
|
multiplier_min: 0.3
|
|
multiplier_max: 4.0
|
|
|
|
wounded:
|
|
duration: 1.0
|
|
blink_hz: 10.0
|
|
|
|
spawn:
|
|
invulnerability_duration: 3.0
|
|
invulnerability_brightness_start: 0.3
|
|
invulnerability_brightness_end: 0.7
|
|
invulnerability_scale_start: 0.0
|
|
invulnerability_scale_end: 1.0
|
|
safety_distance: 36.0
|
|
|
|
colors:
|
|
normal: [255, 0, 255] # Magenta pur "agressiu"
|
|
wounded: [255, 220, 60]
|
|
|
|
score: 200
|
|
|
|
events:
|
|
# HP=1 (default): decrement → on_no_health → set_hurt → wounded → mort.
|
|
on_hit:
|
|
- action: decrease_health
|
|
- action: apply_impulse
|
|
on_no_health:
|
|
- action: set_hurt
|
|
on_hurt_end:
|
|
- action: destroy
|
|
on_destroy:
|
|
- action: add_score
|
|
- action: create_debris
|
|
- action: create_fireworks
|