/traderous

To get this branch, use:
bzr branch http://9ix.org/bzr/traderous
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Cursor = Tile:extend {
   image = 'data/cursor.png',
   onUpdate = function(self)
                 if the.keys:justPressed('t') then
                    self.image = 'data/cursor-target.png'
                 end
                 if the.keys:justPressed('c') then
                    self.image = 'data/cursor.png'
                 end

              end,
   onEndFrame = function(self)
                   self.x = love.mouse.getX() + 8 + the.player.x - 400
                   self.y = love.mouse.getY() + 8 + the.player.y - 300
                end
}