feat(pyramid): usa variants 16×32 sam (jugador) i momia
This commit is contained in:
1 parent
936adf1405
commit
67ecb704d2
8 files changed
+97
-19
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,35 @@
|
||||
name: momia
|
||||
type: dynamic_hazard
|
||||
sprite:
|
||||
path: momia.gif
|
||||
size: [16, 32]
|
||||
tile_size: [1, 1]
|
||||
# Variant 16×32 de la momia: el sprite fa 16×32 (dos 16×16: cap i peus)
|
||||
# i la caja de col·lisió amb el mapa és 16×16, coincident amb el
|
||||
# rectangle-base 16×16 dels peus. Com que `size` i `base_size` són
|
||||
# iguals, el padding és zero i la caja s'alinea exactament amb la
|
||||
# silueta inferior del sprite; amb `anchor: feet` ocupa la cel·la
|
||||
# 16×16 del corredor on naix.
|
||||
anchor: feet
|
||||
collision:
|
||||
size: [16, 16]
|
||||
base_size: [16, 16]
|
||||
flags:
|
||||
collides: true
|
||||
interactable: false
|
||||
# Strip de 12 frames en graella 4×3 (mateix esquema que el jugador):
|
||||
# 0..3 → walk_down (cara avall)
|
||||
# 4..7 → walk_up (cara amunt)
|
||||
# 8..11 → walk (lateral; flip horitzontal segons el sentit)
|
||||
# La momia no té variants `stand_*` perquè mai no para.
|
||||
animations:
|
||||
walk_down: { frames: [0, 1, 2, 3], fps: 8, loop: true }
|
||||
walk_up: { frames: [4, 5, 6, 7], fps: 8, loop: true }
|
||||
walk: { frames: [8, 9, 10, 11], fps: 8, loop: true }
|
||||
ai:
|
||||
type: corridor_wanderer
|
||||
direction_choice: random
|
||||
initial_direction: right
|
||||
stats:
|
||||
speed: 30
|
||||
damage: 1
|
||||
@@ -118,7 +118,7 @@ entities:
|
||||
sarc_position: [3, 4]
|
||||
- type: door
|
||||
position: [9, 1]
|
||||
- type: mummy
|
||||
- type: momia
|
||||
position: [10, 7]
|
||||
- type: mummy
|
||||
- type: momia
|
||||
position: [7, 9]
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,37 @@
|
||||
# player animation
|
||||
tileSetFile: sam.gif
|
||||
frameWidth: 16
|
||||
frameHeight: 32
|
||||
|
||||
# Geometria de col·lisió del jugador (independent de l'animació):
|
||||
# size → costat del quadrat de col·lisió (16×16)
|
||||
# base_size → costat del quadrat visual inferior del sprite (els "peus");
|
||||
# s'usa per centrar la caixa de col·lisió sobre ell.
|
||||
collision:
|
||||
size: 16
|
||||
base_size: 16
|
||||
|
||||
animations:
|
||||
- name: stand_down
|
||||
frames: [1]
|
||||
|
||||
- name: stand_up
|
||||
frames: [5]
|
||||
|
||||
- name: stand
|
||||
frames: [9]
|
||||
|
||||
- name: walk_down
|
||||
speed: 0.1
|
||||
loopFrom: 0
|
||||
frames: [0, 1, 2, 3]
|
||||
|
||||
- name: walk_up
|
||||
speed: 0.1
|
||||
loopFrom: 0
|
||||
frames: [4, 5, 6, 7]
|
||||
|
||||
- name: walk
|
||||
speed: 0.1
|
||||
loopFrom: 0
|
||||
frames: [8, 9, 10, 11]
|
||||
Reference in new issue
Block a user