/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 02:57:38 UTC
  • Revision ID: josh@9ix.org-20131215025738-8hnrktimbqwt81h9
clones you flip don't flip back

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
                    the.clones:collide()
61
61
                    the.clones:collide(the.player)
 
62
                    the.goalPerson:collide(the.player)
62
63
 
63
64
                    if math.random(1,5) == 1 then
64
 
                       the.clones.sprites[math.random(the.clones:count())].fill = {0,255,0}
 
65
                       local c = the.clones.sprites[math.random(the.clones:count())]
 
66
                       if not c.cured then
 
67
                          c.image = 'data/goal.png'
 
68
                       end
65
69
                    end
66
70
 
67
71
                    the.player.moved = false