[NEW] Implementada pausa

[FIX] Corregit un segon arranc de partida
[NEW] Afegida controller:keypressed
This commit is contained in:
2026-05-15 23:05:26 +02:00
parent d732269d49
commit 2e9883e622
5 changed files with 172 additions and 1 deletions
+6
View File
@@ -122,6 +122,8 @@ function game_exit()
end
function game_init(menu)
stage= 1
stage_loaded = 0
-- print("GAME INIT")
actors={}
@@ -282,6 +284,10 @@ function update_game()
score.draw()
if controller:check("ESC") then
states:executar("pause", true)
end
if DEBUG then
special_keys()
debug_info()