Skip to content

Commit

Permalink
Fixed API changes for 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLarsen committed Dec 31, 2015
1 parent c5e2033 commit 2d3c045
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion levelselection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function LevelSelection.keypressed(k)
elseif k == "left" or k == "down" then
LevelSelection.selected = math.max(LevelSelection.selected-1, 1)
love.audio.play(snd.Blip)
elseif k == "return" or k == " " then
elseif k == "return" or k == "space" then
loadMap(LevelSelection.selected)
elseif k == "escape" then
gamestate = STATE_MAINMENU
Expand Down
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ end

function love.keypressed(k)
if gamestate == STATE_INGAME then
if k == " " or k == "z" or k == "x" then
if k == "space" or k == "z" or k == "x" then
player:keypressed(k)
elseif k == "escape" then
gamestate = STATE_INGAME_MENU
Expand Down
6 changes: 3 additions & 3 deletions resources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ function loadImages()
local imgFontSmall = lg.newImage("art/font_small.png")
local imgFontBold = lg.newImage("art/font_bold.png")
local imgFontMedium = lg.newImage("art/font_medium.png")
fontSmall = lg.newImageFont(imgFontSmall, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!$:;'")
fontMedium = lg.newImageFont(imgFontMedium, " 0123456789abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ!-.,$")
fontBold = lg.newImageFont(imgFontBold, " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*:|=-<>./'\"+")
fontSmall = lg.newImageFont(imgFontSmall, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!$:;'", 1)
fontMedium = lg.newImageFont(imgFontMedium, " 0123456789abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ!-.,$", 1)
fontBold = lg.newImageFont(imgFontBold, " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*:|=-<>./'\"+", 1)
lg.setFont(fontBold)
end

Expand Down

0 comments on commit 2d3c045

Please sign in to comment.