/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 19:47:43 UTC
  • Revision ID: josh@9ix.org-20131215194743-ye0rbul4qruqau4g
title screen

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                                })
44
44
              end
45
45
 
46
 
              if self.level == 3 then
47
 
                 self:add(Text:new{
48
 
                             text = "R = Restart level",
49
 
                             x = 20, y = 20,
50
 
                             width = 200
51
 
                          })
52
 
              end
53
 
 
54
46
              if self.level ~= 1 then
55
47
                 self:flash({0,0,0})
56
48
              end
88
80
                    the.player.moved = false
89
81
                 end
90
82
 
91
 
                 if the.keys:justPressed('r') then
92
 
                    the.app.view = GameView:new{level = self.level}
 
83
                 if the.keys:justPressed('escape', 'q') then
 
84
                    the.app:quit()
93
85
                 end
94
86
              end,
95
87
}
160
152
                    local ss = love.graphics.newScreenshot()
161
153
                    ss:encode('screenshot-' ..love.timer.getTime()..'.png')
162
154
                 end
163
 
 
164
 
                 if the.keys:justPressed('escape', 'q') then
165
 
                    the.app:quit()
166
 
                 end
167
155
              end
168
156
}