/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 18:35:29 UTC
  • Revision ID: josh@9ix.org-20130427183529-0lqp56qq6m0yocn1
levels hash, scale player

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Player = Tile:extend {
2
 
   image = 'data/player1.png',
 
2
   image = 'data/player-null.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()
4
12
           end,
5
13
   onStartFrame = function(self)
6
14
                     if the.keys:pressed('up') then