- [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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user