replaced love.event.push(q) call and fixed bullet missing from image font

This commit is contained in:
SimonLarsen 2013-09-08 21:54:59 +02:00
parent 55e74f175b
commit ae0aa391e8
2 changed files with 3 additions and 16 deletions

View File

@ -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)

View File

@ -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 |_|
| |\|/|
|___|
\/ \
\ ]]