/ld28

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

« back to all changes in this revision

Viewing changes to notplayer.lua

  • Committer: Josh C
  • Date: 2013-12-14 04:19:19 UTC
  • Revision ID: josh@9ix.org-20131214041919-p4awvb0gf7axmzc1
add a couple other clones that move randomly

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
   width = 16, height = 16,
4
4
   queue = deque.new(),
5
5
   doMove = function(self)
6
 
               local dir = math.random(1,4)
 
6
               local dir = math.random(1,5)
7
7
 
8
8
               if dir == 1 then
9
9
                  self.x = self.x - self.width