/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 20:03:17 UTC
  • Revision ID: josh@9ix.org-20131215200317-nr8no8pnv222eo39
R = restart level

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
                     self.cured = true
 
33
                  end
30
34
               end
31
35
}
 
 
b'\\ No newline at end of file'