/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:43 UTC
  • Revision ID: josh@9ix.org-20131215025343-wjhcv7nbmqffg4ga
oops, mobile goal file

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)
63
62
 
64
63
                    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
 
64
                       the.clones.sprites[math.random(the.clones:count())].fill = {0,255,0}
69
65
                    end
70
66
 
71
67
                    the.player.moved = false