/ld28

To get this branch, use:
bzr branch /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

62
62
                    the.goalPerson:collide(the.player)
63
63
 
64
64
                    if math.random(1,5) == 1 then
65
 
                       the.clones.sprites[math.random(the.clones:count())].image = 'data/goal.png'
 
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
66
69
                    end
67
70
 
68
71
                    the.player.moved = false