/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-07 22:24:32 UTC
  • Revision ID: josh@9ix.org-20130507222432-74d3ul1p8ffq40s5
only fire if cursor is in target area.  change cursor to reflect this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
}
21
21
 
22
22
local velLimit = 600
23
 
--local velLimit = 50
24
23
SpacePlayer = Tile:extend{
25
24
   image = 'data/ship.png',
26
25
   maxVelocity = {x=velLimit,y=velLimit},
44
43
                           --print('pew')
45
44
                           b = Bullet:new{
46
45
                              x = self.x, y = self.y,
 
46
                              rotation = self.rotation,
47
47
                           }
48
48
                           the.app.view:add(b)
49
49
                           self.lastFired = love.timer.getTime()