/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 22:53:39 UTC
  • Revision ID: josh@9ix.org-20130427225339-6b4me5c8wi7y3jl0
pull data from svg to place objects into the world

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
              the.player = self
5
5
 
6
6
              self.movementScale = self.height / 32
7
 
              print(self.movementScale)
 
7
              --print(self.movementScale)
8
8
 
9
9
              --self.scale = self.scaleHeight / self.height
10
10
              --self.width = self.height * .826
30
30
                        self.velocity.x = 0
31
31
                     end
32
32
                  end,
 
33
   onUpdate = function(self, dt)
 
34
                 self:collide(the.view)
 
35
              end,
33
36
   onEndFrame = function(self)
34
37
                   if self.y < self.minY then
35
38
                      self.y = self.minY