mirror of
https://github.com/libretro/lutro-iyfct.git
synced 2024-11-23 07:59:43 +00:00
replaced love.event.push(q) call and fixed bullet missing from image font
This commit is contained in:
parent
55e74f175b
commit
ae0aa391e8
5
main.lua
5
main.lua
@ -262,7 +262,7 @@ function love.keypressed(key,unicode)
|
||||
selection = 0
|
||||
elseif gamestate == 1 then
|
||||
if submenu == 0 then
|
||||
love.event.push("q")
|
||||
love.event.quit()
|
||||
elseif submenu == 2 then
|
||||
submenu = 0
|
||||
end
|
||||
@ -317,7 +317,7 @@ function loadResources()
|
||||
|
||||
fontimg = love.graphics.newImage("gfx/imgfont.png")
|
||||
fontimg:setFilter("nearest","nearest")
|
||||
imgfont = love.graphics.newImageFont(fontimg," abcdefghijklmnopqrstuvwxyz0123456789.!'-:·")
|
||||
imgfont = love.graphics.newImageFont(fontimg," abcdefghijklmnopqrstuvwxyz0123456789.!'-:*")
|
||||
imgfont:setLineHeight(2)
|
||||
|
||||
-- Load sound effects
|
||||
@ -351,7 +351,6 @@ end
|
||||
|
||||
function love.quit()
|
||||
saveHighscore()
|
||||
-- print(exit_message)
|
||||
end
|
||||
|
||||
function love.focus(f)
|
||||
|
14
menu.lua
14
menu.lua
@ -19,22 +19,10 @@ function drawMenu()
|
||||
|
||||
for i = 0,2 do
|
||||
if i == selection then
|
||||
love.graphics.printf("·"..menu_difficulties[i+1].."·",0,42+i*13,WIDTH,"center")
|
||||
love.graphics.printf("* "..menu_difficulties[i+1].." *",0,42+i*13,WIDTH,"center")
|
||||
else
|
||||
love.graphics.printf(menu_difficulties[i+1],0,42+i*13,WIDTH,"center")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
exit_message = [[ _______________
|
||||
/ \
|
||||
| Thank you for |
|
||||
.---. | playing IYFCT |
|
||||
|,__| \ _____________/
|
||||
|o o| |/
|
||||
_| O |_|
|
||||
| |\|/|
|
||||
|___|
|
||||
\/ \
|
||||
\ ]]
|
||||
|
Loading…
Reference in New Issue
Block a user