/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-06-08 00:02:37 UTC
  • Revision ID: josh@9ix.org-20130608000237-v50hyqvrinp5g4rs
try to make setting screen resolution more reliable

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
              -- try going fullscreen.  should fail silently if it
 
264
              -- can't go to fullscreen.
 
265
              love.graphics.toggleFullscreen()
 
266
 
262
267
              if DEBUG then
263
268
                 self.console:watch('VERSION', 'VERSION')
264
269
                 self.console:watch('updateTook', 'the.updateTook')
279
284
                    self.quit()
280
285
                 elseif the.keys:justPressed('return') then
281
286
                    self.view = GameView:new()
 
287
                 elseif the.keys:justPressed('f1') then
 
288
                    local ss = love.graphics.newScreenshot()
 
289
                    ss:encode('screenshot-' ..love.timer.getTime()..'.png')
282
290
                 end
283
291
              end,
284
292
   update = function (self, dt)