Commit 04bb68966acdd18ade0638c51c037ce1156b6b8d

Authored by Geoffrey PREUD'HOMME
1 parent 11dc342c

Échap

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
game/main.lua
... ... @@ -117,6 +117,9 @@ function love.draw()
117 117 end
118 118  
119 119 function love.keypressed(key, unicode)
  120 + if key == 'escape' then
  121 + love.event.quit()
  122 + end
120 123 if _G[gamestate .. "_keypressed"] then
121 124 _G[gamestate .. "_keypressed"](key, unicode)
122 125 end
... ...