/ld28

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-12-15 16:56:38 UTC
  • Revision ID: josh@9ix.org-20131215165638-ge97fjz6untvjv9i
get rid of spare pixels on bottom

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                 if the.player.moved then
48
48
                    -- this should encapsulate
49
49
 
 
50
                    the.clones:collide(the.player)
 
51
                    the.goalPerson:collide(the.player)
 
52
 
50
53
                    the.goalPerson:doMove()
51
54
 
52
55
                    for _, np in ipairs(the.clones.sprites) do
53
56
                       np:doMove()
54
57
                    end
55
58
 
 
59
                    -- yeah, again.  once for flip, twice for displace
 
60
                    the.clones:collide(the.player)
 
61
 
56
62
                    the.clones:collide(self.map)
57
63
                    the.player:collide(self.map)
58
64
                    the.goalPerson:collide(self.map)
59
65
 
60
66
                    the.clones:collide()
61
 
                    the.clones:collide(the.player)
62
67
 
63
68
                    if math.random(1,5) == 1 then
64
 
                       the.clones.sprites[math.random(the.clones:count())].fill = {0,255,0}
 
69
                       local c = the.clones.sprites[math.random(the.clones:count())]
 
70
                       if not c.cured then
 
71
                          c.image = 'data/goal.png'
 
72
                       end
65
73
                    end
66
74
 
67
75
                    the.player.moved = false