Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implement pausing the game

  • Loading branch information...
commit de220d9cf0069303514bcb6552d5157f87ac7d82 1 parent a6d8798
@tadzik authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 main.lua
View
6 main.lua
@@ -133,6 +133,12 @@ function love.keypressed(key)
love.event.push("q")
elseif key == "r" then
reset()
+ elseif key == "p" then
+ if love.update == gameUpdate then
+ love.update = function() end
+ else
+ love.update = gameUpdate
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.