[NEW] Implementada pausa
[FIX] Corregit un segon arranc de partida [NEW] Afegida controller:keypressed
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user