/ld28

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

« back to all changes in this revision

Viewing changes to notplayer.lua

  • Committer: Josh C
  • Date: 2013-12-14 05:07:54 UTC
  • Revision ID: josh@9ix.org-20131214050754-qvx21hikbfl6e2m4
move clones a little more like players move

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
local dirs = {'left', 'right', 'up', 'down'}
2
2
 
3
 
Clone = Fill:extend {
 
3
NotPlayer = Fill:extend {
4
4
   fill = {255,0,0},
5
5
   width = 16, height = 16,
6
6
   queue = deque.new(),
21
21
               elseif self.direction == 'down' then
22
22
                  self.y = self.y + self.height
23
23
               end
24
 
            end,
25
 
   onCollide = function(self, other)
26
 
                  other:displace(self)
27
 
               end
 
24
            end
28
25
}
 
 
b'\\ No newline at end of file'