/spacey

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-20 17:57:53 UTC
  • Revision ID: josh@9ix.org-20130520175753-yvanutc9jnm8lzbt
quit and restart

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
              --the.player = CrystalPlayer:new{x=400,y=300}
109
109
              the.player = SpacePlayer:new{x=1366,y=768}
110
110
              self:add(the.player)
111
 
              self:add(the.player.thrust)
112
111
 
113
112
              --self:add(Enemy:new{x=400, y=300})
114
113
 
259
258
              math.randomseed(os.time())
260
259
 
261
260
              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
 
 
267
261
              if DEBUG then
268
262
                 self.console:watch('VERSION', 'VERSION')
269
263
                 self.console:watch('updateTook', 'the.updateTook')
284
278
                    self.quit()
285
279
                 elseif the.keys:justPressed('return') then
286
280
                    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')
290
281
                 end
291
282
              end,
292
283
   update = function (self, dt)