23 lines
501 B
YAML
23 lines
501 B
YAML
name: rolling_rock
|
|
type: dynamic_hazard
|
|
sprite:
|
|
path: rolling_rock.gif
|
|
size: [16, 16]
|
|
tile_size: [1, 1]
|
|
collision:
|
|
# `size`/`base_size` no calen per a la roca (tot el sprite és cos),
|
|
# però sí declarem `height` per al filtre de salt: 16 px → fàcil
|
|
# d'esquivar amb un salt curt.
|
|
height: 16
|
|
flags:
|
|
collides: true
|
|
interactable: false
|
|
animations:
|
|
roll: { frames: [0], frame_ms: 100, loop: true }
|
|
ai:
|
|
type: straight_line
|
|
initial_direction: right
|
|
stats:
|
|
speed: 60
|
|
damage: 1
|