mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 06:49:02 -06:00
Added drawIfPaused to gamemode.lua
This commit is contained in:
parent
db4132bf31
commit
923f3d3696
@ -900,6 +900,11 @@ end
|
|||||||
|
|
||||||
function GameMode:drawCustom() end
|
function GameMode:drawCustom() end
|
||||||
|
|
||||||
|
function GameMode:drawIfPaused()
|
||||||
|
love.graphics.setFont(font_3x5_3)
|
||||||
|
love.graphics.printf("GAME PAUSED!", 64, 160, 160, "center")
|
||||||
|
end
|
||||||
|
|
||||||
-- transforms specified in here will transform the whole screen
|
-- transforms specified in here will transform the whole screen
|
||||||
-- if you want a transform for a particular component, push the
|
-- if you want a transform for a particular component, push the
|
||||||
-- default transform by using love.graphics.push(), do your
|
-- default transform by using love.graphics.push(), do your
|
||||||
@ -930,9 +935,8 @@ function GameMode:draw(paused)
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.setFont(font_3x5_3)
|
|
||||||
if paused then
|
if paused then
|
||||||
love.graphics.printf("GAME PAUSED!", 64, 160, 160, "center")
|
self:drawIfPaused()
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.completed then
|
if self.completed then
|
||||||
|
Loading…
Reference in New Issue
Block a user