Here's my code:
Code: Select all
if lost == false then
if grow then
love.graphics.setColor(0,90,45)
text = "Larger"
else
love.graphics.setColor(0,40,145)
text = "Smaller"
end
love.graphics.print(text,10,15)
else
--Shows the points when you die.
font = love.graphics.setNewFont("assets/STSYSTEM.ttf", 90)
love.graphics.setColor(255,20,20)
love.graphics.print("Your score was:",7,25)
love.graphics.setColor(0,255,0)
love.graphics.setNewFont("assets/ARBERKLEY.ttf", 90)
love.graphics.print(points.. "!",7,45)
font = love.graphics.setNewFont("assets/STSYSTEM.ttf", 38)
love.graphics.setColor(4,142,255)
end
p.s. Please excuse my 'bodgy' coding, I'm sort of used to writing in java.