/ld28

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

« back to all changes in this revision

Viewing changes to clone.lua

  • Committer: Josh C
  • Date: 2013-12-14 22:33:14 UTC
  • Revision ID: josh@9ix.org-20131214223314-gxlkcixtm6ma1mlr
put some walls and a goal... doesn't feel quite right.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
local dirs = {'left', 'right', 'up', 'down'}
 
2
 
1
3
Clone = Fill:extend {
2
4
   fill = {255,0,0},
3
5
   width = 16, height = 16,
 
6
   queue = deque.new(),
4
7
   onNew = function(self)
5
8
              self.direction = dirs[math.random(1,4)]
6
9
           end,