feat(entities): clipping per frame, falsa perspectiva del sarcòfag i piràmide amb 20 sarcs

This commit is contained in:
JailDesigner committed 2026-04-21 19:11:02 +02:00
1 parent 7191a08618
commit 1af5ef861f
11 files changed
+162 -25

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 832 B

After

Width:  |  Height:  |  Size: 507 B

+3 -3
View File
@@ -2,13 +2,13 @@ name: door
type: interactable
sprite:
path: door.gif
size: [16, 16]
tile_size: [1, 1]
size: [48, 32]
tile_size: [3, 2]
flags:
collides: true
interactable: true
animations:
closed: { frames: [0], fps: 1, loop: true }
closed: { frames: [1], fps: 1, loop: true }
opening: { frames: [0], fps: 6, loop: false }
open: { frames: [0], fps: 1, loop: true }
behaviour:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

After

Width:  |  Height:  |  Size: 848 B

+4 -1
View File
@@ -2,7 +2,10 @@ name: sarcophagus
type: interactable
sprite:
path: sarcophagus.gif
size: [48, 16]
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]
flags:
collides: true
Binary file not shown.

Before

Width:  |  Height:  |  Size: 832 B

After

Width:  |  Height:  |  Size: 217 B

+3 -1
View File
@@ -7,5 +7,7 @@ tile_size: [1, 1]
flags:
collides: false
interactable: false
# El torch.gif és un strip vertical 16x64 amb 4 frames apilats.
# El render clipa cada frame per `anim.currentFrame()` × 16 píxels en Y.
animations:
idle: { frames: [0], fps: 8, loop: true }
idle: { frames: [0, 1, 2, 3], fps: 8, loop: true }
+49 -7
View File
@@ -52,15 +52,15 @@ data: |
YHJJJJJJJJJJJJJJJJJIY
YZWWWWWWWWWWWWWWWWWTY
YZDDADDBBDDADDDDBDDTY
YZD...D...D...B...DTY
YZDAAADAAADAAABAAADTY
YZDDDCCDDDDDADDDBDDTY
YZD...D...A...D...DTY
YZDAAADAAAAAAADAAADTY
YZDDCCDDDDDADDBDDDDTY
YZD...D...D...D...DTY
YZDAAADAAADAAADAAADTY
YZDDDDCCDDDDADDDDDDTY
YZD...D...D...D...DTY
YZDAAADAAADAAADAAADTY
YZDDDABDDDDADCDDBDDTY
YZD...D...D...D...DTY
YZDAAADAAADAAADAAADTY
YZDDBBDDADDDBCDDDDDTY
YRXXXXXXXXXXXXXXXXXGY
@@ -79,12 +79,54 @@ data: |
# superior esquerre per verificar render d'una entitat decorativa.
entities:
- type: torch
position: [2, 4]
position: [4, 2]
- type: torch
position: [8, 2]
- type: torch
position: [12, 2]
- type: torch
position: [16, 2]
- type: sarcophagus
sarc_position: [0, 0]
- type: sarcophagus
sarc_position: [1, 0]
- type: sarcophagus
sarc_position: [2, 0]
- type: sarcophagus
sarc_position: [3, 0]
- type: sarcophagus
sarc_position: [0, 1]
- type: sarcophagus
sarc_position: [1, 1]
- type: sarcophagus
sarc_position: [2, 1]
- type: sarcophagus
sarc_position: [3, 1]
- type: sarcophagus
sarc_position: [0, 2]
- type: sarcophagus
sarc_position: [1, 2]
- type: sarcophagus
sarc_position: [2, 2]
- type: sarcophagus
sarc_position: [3, 2]
- type: sarcophagus
sarc_position: [0, 3]
- type: sarcophagus
sarc_position: [1, 3]
- type: sarcophagus
sarc_position: [2, 3]
- type: sarcophagus
sarc_position: [3, 3]
- type: sarcophagus
sarc_position: [0, 4]
- type: sarcophagus
sarc_position: [1, 4]
- type: sarcophagus
sarc_position: [2, 4]
- type: sarcophagus
sarc_position: [3, 4]
- type: door
position: [10, 14]
position: [9, 1]
- type: mummy
position: [10, 7]