/ld26

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

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-04-27 17:10:14 UTC
  • Revision ID: josh@9ix.org-20130427171014-d41dnj1o6dwj36tk
ignore deploy dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Player = Tile:extend {
2
 
   image = 'data/player-null.png',
 
2
   image = 'data/player1.png',
3
3
   onNew = function(self)
4
 
              the.player = self
5
 
 
6
 
              self.movementScale = self.height / 32
7
 
 
8
 
              --self.scale = self.scaleHeight / self.height
9
 
              --self.width = self.height * .826
10
 
              --self.width = self.width * self.scale
11
 
              --self:updateQuad()
12
4
           end,
13
5
   onStartFrame = function(self)
14
6
                     if the.keys:pressed('up') then