feat(entities): clipping per frame, falsa perspectiva del sarcòfag i piràmide amb 20 sarcs
This commit is contained in:
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 |
@@ -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 |
@@ -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 |
@@ -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 }
|
||||
Reference in new issue
Block a user