/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-15 02:53:43 UTC
  • Revision ID: josh@9ix.org-20131215025343-wjhcv7nbmqffg4ga
oops, mobile goal file

Show diffs side-by-side

added added

removed removed

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