Skip to content

Commit 7ff8124

Browse files
committed
Move to löve 0.10.0
1 parent 9e893c1 commit 7ff8124

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

k3towdef.love/grid.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Grid:load(base)
4444
grid:updateSize()
4545

4646
graphics.setCanvas(canvas)
47-
canvas:clear()
47+
graphics.clear()
4848
grid:gridDraw()
4949
for y, line in ipairs(grid.cells) do
5050
for x, cell in ipairs(line) do

k3towdef.love/levels/levelEasy.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function gridDraw(self)
4343
end
4444

4545
local waves = {
46-
{speed = function() return random(3) end, life = 40, frequency = 1, enemyNumber = 20},
46+
{speed = 1, life = 40, frequency = 1, enemyNumber = 20},
4747
{speed = 2, life = 30, frequency = 2, enemyNumber = 20},
4848
{speed = 1, life = 25, frequency = 8, enemyNumber = 20},
4949
{speed = 2, life = 40, frequency = 2, enemyNumber = 20},

k3towdef.love/main.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function love.keypressed(key, unicode)
2424
fullscreen = not fullscreen
2525

2626
if fullscreen then
27-
love.window.setFullscreen(true)
27+
love.window.setFullscreen(true, "exclusive")
2828
else
29-
love.window.setFullscreen(false)
29+
love.window.setFullscreen(false, "exclusive")
3030
end
3131

3232
grid:updateSize()
@@ -42,8 +42,8 @@ function love.keypressed(key, unicode)
4242
end
4343
end
4444

45-
function love.mousepressed(x,y,button)
46-
if button == "l" then
45+
function love.mousepressed(x,y,button,istouch)
46+
if button == 1 then
4747
xg = math.ceil(x / grid.cells[1][1].width)
4848
yg = math.ceil(y / grid.cells[1][1].height)
4949

@@ -56,7 +56,7 @@ function love.mousepressed(x,y,button)
5656
grid.focus = true
5757
end
5858
end
59-
if button == "r" then
59+
if button == 2 then
6060
grid.focus = false
6161
end
6262
end

0 commit comments

Comments
 (0)