/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:53:51 UTC
  • Revision ID: josh@9ix.org-20131215025351-g6jn442ybabnegsf
clones turning into fake goals

Show diffs side-by-side

added added

removed removed

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