/ld26

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

« back to all changes in this revision

Viewing changes to displacer.lua

  • Committer: Josh C
  • Date: 2013-04-29 01:54:19 UTC
  • Revision ID: josh@9ix.org-20130429015419-8ts0gwspqonsxkjb
Tags: compo
nameĀ theĀ game

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
                    self:displace(other)
10
10
                 end
11
11
              end
12
 
}
 
 
b'\\ No newline at end of file'
 
12
}
 
13
 
 
14
MaybeDisplacer = Fill:extend{
 
15
   fill = {0, 128, 255},
 
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
}