/traderous

To get this branch, use:
bzr branch http://9ix.org/bzr/traderous
8 by Josh C
targeting cursor (manual switch to start)
1
Cursor = Tile:extend {
2
   image = 'data/cursor.png',
3
   onUpdate = function(self)
4
                 if the.keys:justPressed('t') then
5
                    self.image = 'data/cursor-target.png'
6
                 end
7
                 if the.keys:justPressed('c') then
8
                    self.image = 'data/cursor.png'
9
                 end
10
11
              end,
12
   onEndFrame = function(self)
12 by Josh C
fullscreen. (there must be a more subtle way...)
13
                   self.x = love.mouse.getX() + 8 + the.player.x - the.app.width / 2
14
                   self.y = love.mouse.getY() + 8 + the.player.y - the.app.height / 2
8 by Josh C
targeting cursor (manual switch to start)
15
                end
16
}