/ld28

To get this branch, use:
bzr branch /bzr/ld28

« back to all changes in this revision

Viewing changes to clone.lua

  • Committer: Josh C
  • Date: 2013-12-15 02:53:51 UTC
  • Revision ID: josh@9ix.org-20131215025351-g6jn442ybabnegsf
clones turning into fake goals

Show diffs side-by-side

added added

removed removed

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