- [NEW] El mono

- [NEW] Noves animacions de detallets
- [NEW] Més particles i eye candy
- [FIX] Si es ficava un item/enemic en la fila de baix del tot no es guardaba
- [FIX] Quan se disaparaba cap a la dreta amb el final de la pantalla o una pared en la esquena, la bala no eixia
- [WIP] Treballant en el marcador
This commit is contained in:
Raimon @ quifisraimon committed 2026-10-06 15:56:37 +02:00
1 parent 1f6fd47b6d
commit d2ebbccbf6
20 files changed
+172 -27

No files matched your search

+6
View File
@@ -8,9 +8,15 @@ function ia.update_porta(spr)
sprites.hero.keys[spr.color] = nil
sprites.set_animation(spr, "porta_obrint")
spr.state = templates.DYING
spr.last_frame=0
end
end
elseif spr.state == templates.DYING then
if spr.current_frame ~= spr.last_frame then
spr.last_frame = spr.current_frame
sprites.dust_ex(spr, {pos={x=spr.pos.x+1, y=spr.pos.y+16-spr.last_frame}, dir={x=math.random()-0.5,y=0.9}, flipped=spr.flipped})
end
if spr.current_frame == 15 then
local tx, ty = sprites.get_tile(spr.pos.x), sprites.get_tile(spr.pos.y)
map.surf(rooms.surf_items)