- [NEW] El marcador s'amaga quan mors

- [NEW] Al morir i apagar-se tot, les llums s'encenen de cero a normal de nou al reviure
This commit is contained in:
2026-03-27 14:02:41 +01:00
parent 797d407539
commit 5f465b2a74
3 changed files with 20 additions and 3 deletions

View File

@@ -36,6 +36,16 @@ game = {
--shader.enable();
end,
restart = function()
rooms.reload()
sprites.add_from_room(rooms.pos.x, rooms.pos.y)
pal.set(palfade.original)
ia.hero_reset()
sprites.hero.light = 0
tweening.add(0,100,1,easing.linear,function(value,n,finished)sprites.hero.light = value end)
score.init(true)
end,
update = function()
game.water_counter = game.water_counter + 0.05