/ld28

To get this branch, use:
bzr branch http://9ix.org/bzr/ld28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
NotPlayer = Fill:extend {
   fill = {255,0,0},
   width = 16, height = 16,
   queue = deque.new(),
   doMove = function(self)
               local dir = math.random(1,5)

               if dir == 1 then
                  self.x = self.x - self.width
               elseif dir == 2 then
                  self.x = self.x + self.width
               elseif dir == 3 then
                  self.y = self.y - self.height
               elseif dir == 4 then
                  self.y = self.y + self.height
               end
            end
}