feat(enemy): sistema d'events declaratius via YAML
This commit is contained in:
@@ -53,3 +53,14 @@ colors:
|
||||
wounded: [255, 220, 60]
|
||||
|
||||
score: 200
|
||||
|
||||
events:
|
||||
on_hit:
|
||||
- action: apply_impulse
|
||||
- action: set_hurt
|
||||
on_hurt_end:
|
||||
- action: destroy
|
||||
on_destroy:
|
||||
- action: add_score
|
||||
- action: create_debris
|
||||
- action: create_fireworks
|
||||
|
||||
Reference in New Issue
Block a user