/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-20 17:57:53 UTC
  • Revision ID: josh@9ix.org-20130520175753-yvanutc9jnm8lzbt
quit and restart

Show diffs side-by-side

added added

removed removed

274
274
              end
275
275
           end,
276
276
   onUpdate = function (self, dt)
277
 
                 if the.keys:justPressed('escape') then
 
277
                 if the.keys:justPressed('q') then
278
278
                    self.quit()
 
279
                 elseif the.keys:justPressed('return') then
 
280
                    self.view = GameView:new()
279
281
                 end
280
282
              end,
281
283
   update = function (self, dt)