/ld28

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

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-12-15 19:59:03 UTC
  • Revision ID: josh@9ix.org-20131215195903-3pb7rnz9xow0wkc9
move quit keybindings to app

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
   image = 'data/player.png',
3
3
   queue = deque.new(),
4
4
   onNew = function(self)
5
 
              for _ = 1, math.random(1,3) do
 
5
              local delay = {0,1,2}
 
6
              for _ = 1, delay[the.view.level] do
6
7
                 self.queue:push_right(dirs[math.random(1,4)])
7
8
              end
8
9
           end,