/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2014-07-06 22:55:23 UTC
  • Revision ID: josh@9ix.org-20140706225523-5dnau1lu753yt0t4
update build.sh for love 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
STRICT = true
 
1
STRICT = false
2
2
DEBUG = false
3
 
LOVEBIRD = false
4
3
 
5
4
if SDL then
6
5
  print = SDL.log
7
6
end
8
7
 
 
8
--lovebird = require 'lovebird'
9
9
require 'zoetrope'
10
10
--require 'pepperprof'
11
11
--inspect = require 'inspect'
181
181
 
182
182
           end,
183
183
   onUpdate = function(self, elapsed)
184
 
                 if the.keys:allJustPressed() then
185
 
                    the.app.view = GameView:new()
186
 
                 end
187
 
              end
 
184
     if the.keys:allJustPressed() or the.mouse:pressed() then
 
185
       the.app.view = GameView:new()
 
186
     end
 
187
   end
188
188
}
189
189
 
190
190
the.app = App:new {
213
213
                 end
214
214
              end,
215
215
   update = function(self, dt)
216
 
     if LOVEBIRD then
217
 
       require('lovebird').update()
 
216
     if lovebird then
 
217
       fps = love.timer.getFPS()
 
218
       lovebird.update()
218
219
     end
219
220
     App.update(self, dt)
220
221
   end,