# door1 animation
# Hoja de sprites horizontal: 33 frames de 8x32 (264x32 px total).
# Frame 0 = puerta cerrada, frames 1..31 = puerta subiendo pixel a pixel,
# frame 32 = puerta totalmente abierta.
tileSetFile: door1.gif
frameWidth: 8
frameHeight: 32

animations:
  - name: closed
    frames: [0]

  # Apertura: 0.7s con easing easeOutCubic. Cada frame del gif representa
  # un pixel de subida; la duración de cada frame se ha precalculado como
  # el tiempo que la posición eased está dentro de ese pixel. Resultado:
  # arranque rápido (pixels fugaces) y desaceleración progresiva al llegar
  # al tope (último pixel se sostiene visiblemente).
  - name: opening
    loopFrom: -1
    speed: [0.0074, 0.0075, 0.0077, 0.0079, 0.0081, 0.0083, 0.0085, 0.0087, 0.0090, 0.0092, 0.0095, 0.0098, 0.0101, 0.0105, 0.0109, 0.0113, 0.0118, 0.0124, 0.0130, 0.0136, 0.0144, 0.0153, 0.0164, 0.0177, 0.0192, 0.0211, 0.0236, 0.0270, 0.0320, 0.0402, 0.0573, 0.2206]
    frames: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]

  - name: opened
    frames: [32]
