/traderous

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

« back to all changes in this revision

Viewing changes to game_over.lua

  • Committer: Josh C
  • Date: 2013-06-30 21:40:01 UTC
  • Revision ID: josh@9ix.org-20130630214001-qb2ykjjrolqm1mzx
recenter mouse on respawn

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
              self:add(self.timer)
49
49
           end,
50
50
   onUpdate = function (self)
51
 
                 local time = math.floor(self.died + 5 - love.timer.getTime())
 
51
                 local time = math.floor(self.died + 5.9 - love.timer.getTime())
52
52
 
53
53
                 self.timer.text = 'Respawning in ' .. time .. '...'
54
54
 
66
66
 
67
67
                    the.app.view.focus = the.player
68
68
 
 
69
                    love.mouse.setPosition(the.app.width / 2, the.app.height / 2)
 
70
 
69
71
                    the.interface:remove(self)
70
72
                 end
71
73
              end