1
GameOver = Group:extend {
2
onNew = function (self)
3
self.died = love.timer.getTime()
7
local boxL = the.app.width / 2 - boxW / 2
8
local boxT = the.app.height / 2 - boxH / 2
9
local boxR = boxL + boxW
10
local boxB = boxT + boxH
13
local lh = 26 -- line height
40
self.timer = Text:new{
41
text = 'Respawning in ...',
50
onUpdate = function (self)
51
local time = math.floor(self.died + 5.9 - love.timer.getTime())
53
self.timer.text = 'Respawning in ' .. time .. '...'
56
local m = math.ceil(the.player.money * .8)
57
the.player = SpacePlayer:new{
58
x = the.storage.data.player.x,
59
y = the.storage.data.player.y,
61
cargoSpace = the.storage.data.player.cargoSpace
63
the.app.view:add(the.player)
64
the.app.view:add(the.player.thrust)
65
the.app.view:add(the.player.shield)
67
the.app.view.focus = the.player
69
love.mouse.setPosition(the.app.width / 2, the.app.height / 2)
71
the.interface:remove(self)
b'\\ No newline at end of file'