/traderous

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

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-05-13 21:40:14 UTC
  • Revision ID: josh@9ix.org-20130513214014-cpvr4zqooyl6nxf3
don't fire from top-left corner of the ship.  ...  fire from center of 
ship for now.  :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                       the.cursor:inTargetArea() then
52
52
                           --print('pew')
53
53
                           b = Bullet:new{
54
 
                              x = self.x, y = self.y,
 
54
                              x = self.x + self.width / 2,
 
55
                              y = self.y + self.height / 2,
55
56
                           }
56
57
                           the.app.view:add(b)
57
58
                           self.lastFired = love.timer.getTime()