Files
aee-arcade/data/entities/sarcophagus/sarcophagus.yaml
T

30 lines
1010 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: sarcophagus
type: interactable
sprite:
path: sarcophagus.gif
size: [48, 32]
# Footprint lògic en tiles: 3×1 (48×16 baix del sprite). Els 16 px de dalt
# són "alçada" en falsa perspectiva, sense col·lisió. Perímetre ortogonal
# de 8 tiles (3 N + 3 S + 1 O + 1 E).
tile_size: [3, 1]
collision:
# Sarcòfag = obstacle massís: alçada efectiva infinita (999) per al
# filtre del salt. Un jugador no el pot saltar per damunt encara que
# el salt arribe al punt àlgid. La caixa de col·lisió real (logical
# 48×16) la calcula `placeSarcophagus` a partir de la geometria del
# mapa, no des d'aquest YAML.
height: 999
flags:
collides: true
interactable: true
animations:
closed: { frames: [0], fps: 1, loop: true }
opening: { frames: [0], fps: 6, loop: false }
open: { frames: [0], fps: 1, loop: true }
behaviour:
states: [CLOSED, OPENING, OPEN]
initial_state: CLOSED
on_perimeter_complete: OPENING
on_opening_end: OPEN
emits_event_on_open: sarcophagus_opened