/ld26

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

« back to all changes in this revision

Viewing changes to transition.lua

  • Committer: Josh C
  • Date: 2013-04-27 23:26:34 UTC
  • Revision ID: josh@9ix.org-20130427232634-dimxzr3ds9ewe78d
some transitions in svg

Show diffs side-by-side

added added

removed removed

4
4
              local target = self.target
5
5
              -- NOTE: X/Y will fail if you init Transition before Player!
6
6
              box = Fill:new{x = self.x, y = self.y,
7
 
                             height = the.player.height,
8
 
                             width = the.player.width,
 
7
                             height = self.height or the.player.height,
 
8
                             width = self.width or the.player.width,
9
9
                             fill = {0, 255, 0},
10
10
                             onCollide = function(self, other, xOl, yOl)
11
11
                                            -- (sanity check)
20
20
              self:add(Text:new{x = self.x, y = self.y,
21
21
                                text = "T"
22
22
                             })
 
23
 
 
24
              -- make sure collision doesn't think group is a sprite
 
25
              self.x, self.y, self.width, self.height = nil, nil, nil, nil
23
26
           end,
24
27
   onUpdate = function(self, dt)
25
28
                 self.visible = DEBUG and the.console.visible