GITLAB
LeClubInfo
/
trosh
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Issues
0
Merge Requests
0
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
04bb68966acdd18ade0638c51c037ce1156b6b8d
Authored by
Geoffrey PREUD'HOMME
2016-04-20 08:17:57 +0200
1 parent
11dc342c
Échap
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
game/main.lua
Inline
Side-by-side
game/main.lua
Wrap text
Show/Hide comments
View file @
04bb689
...
...
@@ -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
...
...