/traderous

To get this branch, use:
bzr branch http://9ix.org/bzr/traderous

« 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

Lines of Context:
259
259
              math.randomseed(os.time())
260
260
 
261
261
              self.view = GameView:new()
262
 
 
263
 
              -- should fail silently if it can't go to fullscreen...
264
 
              love.graphics.toggleFullscreen()
265
 
 
266
262
              if DEBUG then
267
263
                 self.console:watch('VERSION', 'VERSION')
268
264
                 self.console:watch('updateTook', 'the.updateTook')
282
278
                 if the.keys:justPressed('q') then
283
279
                    self.quit()
284
280
                 elseif the.keys:justPressed('return') then
285
 
                    if the.keys:pressed('alt') then
286
 
                       love.graphics.toggleFullscreen()
287
 
                    else
288
 
                       self.view = GameView:new()
289
 
                    end
 
281
                    self.view = GameView:new()
290
282
                 elseif the.keys:justPressed('f1') then
291
283
                    local ss = love.graphics.newScreenshot()
292
284
                    ss:encode('screenshot-' ..love.timer.getTime()..'.png')
293
 
                 elseif the.keys:justPressed('f11') then
294
 
                    love.graphics.toggleFullscreen()
295
285
                 end
296
286
              end,
297
287
   update = function (self, dt)