/spacey

To get this branch, use:
bzr branch /bzr/spacey

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-29 02:51:39 UTC
  • Revision ID: josh@9ix.org-20130529025139-g8sboz3p23excyz4
F1 = screenshot

Show diffs side-by-side

added added

removed removed

279
279
                    self.quit()
280
280
                 elseif the.keys:justPressed('return') then
281
281
                    self.view = GameView:new()
 
282
                 elseif the.keys:justPressed('f1') then
 
283
                    local ss = love.graphics.newScreenshot()
 
284
                    ss:encode('screenshot-' ..love.timer.getTime()..'.png')
282
285
                 end
283
286
              end,
284
287
   update = function (self, dt)