/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:20:51 UTC
  • Revision ID: josh@9ix.org-20131215022051-kyqldojzgu2xxcg8
moving goal, clones turning green...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Clone = Tile:extend {
2
 
   image = 'data/player.png',
 
1
Clone = Fill:extend {
 
2
   fill = {255,0,0},
 
3
   width = 16, height = 16,
3
4
   onNew = function(self)
4
5
              self.direction = dirs[math.random(1,4)]
5
6
           end,
26
27
                                       util.dirToXY(self.direction),
27
28
                                       - util.dirToPosNeg(self.direction))
28
29
                  end
29
 
 
30
 
                  if other == the.player then
31
 
                     self.image = 'data/player.png'
32
 
                  end
33
30
               end
34
31
}
 
 
b'\\ No newline at end of file'