/ld28

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

« back to all changes in this revision

Viewing changes to clone.lua

  • Committer: Josh C
  • Date: 2013-12-14 20:49:59 UTC
  • Revision ID: josh@9ix.org-20131214204959-sbwlos88we9pckgo
... add the map.  and the extra code to work w/ it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
               end
24
24
            end,
25
25
   onCollide = function(self, other)
26
 
                  other:displace(self)
 
26
                  if other ~= the.view.map then
 
27
                     --print('collision')
 
28
 
 
29
                     other:displaceDir(self,
 
30
                                       util.dirToXY(self.direction),
 
31
                                       - util.dirToPosNeg(self.direction))
 
32
                  end
27
33
               end
28
34
}
 
 
b'\\ No newline at end of file'