/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-24 03:14:13 UTC
  • Revision ID: josh@9ix.org-20130524031413-b7104z7wa1zpavzd
thrust indicator

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)
111
112
 
112
113
              --self:add(Enemy:new{x=400, y=300})
113
114
 
274
275
              end
275
276
           end,
276
277
   onUpdate = function (self, dt)
277
 
                 if the.keys:justPressed('escape') then
 
278
                 if the.keys:justPressed('q') then
278
279
                    self.quit()
 
280
                 elseif the.keys:justPressed('return') then
 
281
                    self.view = GameView:new()
279
282
                 end
280
283
              end,
281
284
   update = function (self, dt)