ending screen again
This commit is contained in:
parent
b167e9360b
commit
533f1c5534
|
@ -23,8 +23,8 @@ ENTER TO KEEP]],
|
||||||
mouseSensitivity = "TURN SPEED",
|
mouseSensitivity = "TURN SPEED",
|
||||||
language = "LANGUAGE",
|
language = "LANGUAGE",
|
||||||
FOV = "FOV",
|
FOV = "FOV",
|
||||||
win = [[
|
win = [[ZIMINIAR HAS ARRIVED. THE WORLD WILL NEVER BE THE SAME.
|
||||||
YOU'RE WINNER!
|
|
||||||
|
|
||||||
|
RICHES TO THE CONJUROR!
|
||||||
]]
|
]]
|
||||||
}
|
}
|
|
@ -15,7 +15,7 @@ local function radius( y )
|
||||||
return math.pow( math.max( 0,
|
return math.pow( math.max( 0,
|
||||||
0.6 * math.pow( (1-y), 1/3 ) +
|
0.6 * math.pow( (1-y), 1/3 ) +
|
||||||
0.1 * math.exp( -5*y )),
|
0.1 * math.exp( -5*y )),
|
||||||
1.1)
|
0.8)
|
||||||
end
|
end
|
||||||
|
|
||||||
local loops = {}
|
local loops = {}
|
||||||
|
|
|
@ -29,12 +29,12 @@ mesh:setVertexMap{
|
||||||
}
|
}
|
||||||
local cubemap = lg.newCubeImage(
|
local cubemap = lg.newCubeImage(
|
||||||
{
|
{
|
||||||
"tex/cubemap_0.png",
|
"tex/cubemap_5.png",
|
||||||
"tex/cubemap_1.png",
|
"tex/cubemap_4.png",
|
||||||
"tex/cubemap_2.png",
|
"tex/cubemap_2.png",
|
||||||
"tex/cubemap_3.png",
|
"tex/cubemap_3.png",
|
||||||
"tex/cubemap_4.png",
|
"tex/cubemap_0.png",
|
||||||
"tex/cubemap_5.png",
|
"tex/cubemap_1.png",
|
||||||
},
|
},
|
||||||
{mipmaps = true} )
|
{mipmaps = true} )
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@ t.wheelmoved = noop
|
||||||
|
|
||||||
|
|
||||||
function t.keypressed( key, code, isRepeat )
|
function t.keypressed( key, code, isRepeat )
|
||||||
|
if code == "escape" then
|
||||||
|
love.mouse.setRelativeMode( false )
|
||||||
|
end
|
||||||
if code == "return" then
|
if code == "return" then
|
||||||
if printString ~= fullString then
|
if printString ~= fullString then
|
||||||
printString = fullString
|
printString = fullString
|
||||||
|
@ -36,7 +39,13 @@ function t.draw()
|
||||||
love.graphics.setColor( 1, 0.2, 0.2 )
|
love.graphics.setColor( 1, 0.2, 0.2 )
|
||||||
love.graphics.printf( printString, 10, 10, math.min( 400, love.graphics.getWidth() / 2 ), "left" )
|
love.graphics.printf( printString, 10, 10, math.min( 400, love.graphics.getWidth() / 2 ), "left" )
|
||||||
love.graphics.print( strings.toContinue, 10, love.graphics.getHeight() - love.graphics.getFont():getHeight() )
|
love.graphics.print( strings.toContinue, 10, love.graphics.getHeight() - love.graphics.getFont():getHeight() )
|
||||||
if quad then love.graphics.draw( quad, 450, 0, 0, 0.3, 0.3) end
|
love.graphics.setColor( 1, 1, 1 )
|
||||||
|
if quad then
|
||||||
|
local h = love.graphics.getHeight()
|
||||||
|
local s = (love.graphics.getWidth() - 450) / quad:getWidth()
|
||||||
|
local y = h - quad:getHeight() * s
|
||||||
|
love.graphics.draw( quad, 450, y, 0, s, s)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function t.update( dt )
|
function t.update( dt )
|
||||||
|
|
Loading…
Reference in New Issue