/spacey

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

« back to all changes in this revision

Viewing changes to wrap_tile.lua

  • Committer: Josh C
  • Date: 2013-05-14 17:32:46 UTC
  • Revision ID: josh@9ix.org-20130514173246-rjq8assj79qbd6fn
explosions

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
                  if not self.xMirror then
32
32
                     --print('creating mirror: X='..xMirrorX..' Y='..xMirrorY)
33
33
 
34
 
                     self.xMirror = Tile:new{ image = self.image }
 
34
                     self.xMirror = Mirror:new{ of = self, image = self.image }
35
35
                     the.app.view:add(self.xMirror)
36
36
                  end
37
37
 
49
49
                  if not self.yMirror then
50
50
                     --print('creating mirror: X='..yMirrorX..' Y='..yMirrorY)
51
51
 
52
 
                     self.yMirror = Tile:new{ image = self.image }
 
52
                     self.yMirror = Mirror:new{ of = self, image = self.image }
53
53
                     the.app.view:add(self.yMirror)
54
54
                  end
55
55
 
67
67
                  if not self.xyMirror then
68
68
                     --print('creating mirror: X='..xyMirrorX..' Y='..xyMirrorY)
69
69
 
70
 
                     self.xyMirror = Tile:new{ image = self.image }
 
70
                     self.xyMirror = Mirror:new{ of = self, image = self.image }
71
71
                     the.app.view:add(self.xyMirror)
72
72
                  end
73
73
 
99
99
 
100
100
               self:wrap()
101
101
               self:reflect()
102
 
 
103
 
               -- TODO: make sure mirrors are cleaned up when we are
104
 
               -- killed / removed from view
105
102
            end
106
103
}
 
 
b'\\ No newline at end of file'