Skip to content

Commit

Permalink
Added quit method (to be used when saving state)
Browse files Browse the repository at this point in the history
  • Loading branch information
russplaysguitar committed Nov 16, 2011
1 parent 8f3b35e commit d36ec7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,8 @@ function pythag(x1, y1, x2, y2)
return math.sqrt((x1-x2)^2 + (y1-y2)^2)
end

function love.quit()
--This will be printed to the console on quit

print("Thanks for playing. Please play again soon!")
end

0 comments on commit d36ec7a

Please sign in to comment.