/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:
50
50
                    the.clones:collide(the.player)
51
51
                    the.goalPerson:collide(the.player)
52
52
 
53
 
                    if self.level ~= 2 then
54
 
                       the.goalPerson:doMove()
55
 
                    end
 
53
                    the.goalPerson:doMove()
56
54
 
57
55
                    for _, np in ipairs(the.clones.sprites) do
58
56
                       np:doMove()
67
65
 
68
66
                    the.clones:collide()
69
67
 
70
 
                    if math.random(1,6) == 1 then
 
68
                    if math.random(1,5) == 1 then
71
69
                       local c = the.clones.sprites[math.random(the.clones:count())]
72
 
                       if self.level == 3 and not c.cured then
 
70
                       if not c.cured then
73
71
                          c.image = 'data/goal.png'
74
72
                       end
75
73
                    end
89
87
   onRun = function (self)
90
88
              print('Version: ' .. VERSION)
91
89
 
92
 
              self.view = GameView:new{level = 1}
 
90
              self.view = GameView:new()
93
91
 
94
92
              if DEBUG then
95
93
                 self.console:watch('VERSION', 'VERSION')
96
 
                 self.console:watch('level', 'the.view.level')
97
94
 
98
95
                 -- back off that dark overlay a bit
99
96
                 self.console.fill.fill[4] = 75