/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26
13 by Josh C
pull data from svg to place objects into the world
1
Displacer = Fill:extend{
2
   fill = {0, 255, 255},
3
   visible = false,
4
   onUpdate = function(self, dt)
5
                self.visible = DEBUG and the.console.visible
6
             end,
7
   onCollide = function(self, other, xOl, yOl)
8
                 if other == the.player then --sanity check
9
                    self:displace(other)
10
                 end
11
              end
42 by Josh C
be moved
12
}
13
14
MaybeDisplacer = Fill:extend{
43 by Josh C
blah
15
   fill = {0, 128, 255},
42 by Josh C
be moved
16
   visible = false,
17
   onUpdate = function(self, dt)
18
                self.visible = DEBUG and the.console.visible
19
             end,
20
   onCollide = function(self, other, xOl, yOl)
21
                  --print('col')
22
                  if the.player.canMove then
23
                     self:displace(other)
24
                  end
25
               end
26
}