/ld27

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

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-08-24 21:15:46 UTC
  • Revision ID: josh@9ix.org-20130824211546-713om9pp99jgd6of
more map

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
   minVelocity = {x=-velLimit, y=-velLimit},
6
6
   onStartFrame = function(self)
7
7
                     if the.keys:pressed('left') then
8
 
                        self.velocity.x = -200
 
8
                        self.velocity.x = -200 * the.activeMaze.moveMod
9
9
                     elseif the.keys:pressed('right') then
10
 
                        self.velocity.x = 200
 
10
                        self.velocity.x = 200 * the.activeMaze.moveMod
11
11
                     else
12
12
                        self.velocity.x = 0
13
13
                     end
14
14
 
15
15
                     if the.keys:pressed('up') then
16
 
                        self.velocity.y = -200
 
16
                        self.velocity.y = -200 * the.activeMaze.moveMod
17
17
                     elseif the.keys:pressed('down') then
18
 
                        self.velocity.y = 200
 
18
                        self.velocity.y = 200 * the.activeMaze.moveMod
19
19
                     else
20
20
                        self.velocity.y = 0
21
21
                     end