/ld26

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

« back to all changes in this revision

Viewing changes to displacer.lua

  • Committer: Josh C
  • Date: 2013-04-27 22:53:39 UTC
  • Revision ID: josh@9ix.org-20130427225339-6b4me5c8wi7y3jl0
pull data from svg to place objects into the world

Show diffs side-by-side

added added

removed removed

 
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
 
12
}
 
 
'\\ No newline at end of file'