Skip to content

Commit

Permalink
Remove unused variable isOver
Browse files Browse the repository at this point in the history
  • Loading branch information
lemilonkh committed May 7, 2018
1 parent ce64359 commit e1c2631
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ settings = {
}

function love.load()
isOver = false
-- make sure math.random actually returns different values every time the game is started
-- make sure math.random actually returns different values every time the game is started
math.randomseed(os.time())

-- make scaled up sprites pixel out nicely
Expand Down Expand Up @@ -167,10 +166,6 @@ function drawCircle(body)
end

function love.draw()
if isOver then
Player:death()
end

love.graphics.push()
local scale = love.graphics.getDPIScale()
love.graphics.scale(scale)
Expand Down

0 comments on commit e1c2631

Please sign in to comment.