/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-28 05:19:04 UTC
  • Revision ID: josh@9ix.org-20130428051904-7j0sucv9tm8rqdkf
inventory (and a flower)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Player = Tile:extend {
2
2
   image = 'data/player-null.png',
 
3
   minY = 0, maxY = 600,
3
4
   onNew = function(self)
4
5
              the.player = self
5
6
 
13
14
           end,
14
15
   onStartFrame = function(self)
15
16
                     local ms = self.movementScale
 
17
                     if DEBUG and the.console.visible then
 
18
                        ms = ms * 4
 
19
                     end
16
20
 
17
21
                     if the.keys:pressed('up') then
18
22
                        self.velocity.y = -100 * ms