This will be my first time posting on this forum, so if I've missed anything just let me know.
I am very new to LÖVE and lua, but I'm getting the grasp of it pretty quickly.
I am trying to print a 'GAME OVER' text that comes in from the top of the screen and then stops at the middle of screen.
This is my proposed code:
Code: Select all
TEXT_SPEED = 1
function render()
while y < 80 do
love.graphics.print("GAMEOVER", middleOfXAxis, y)
dy = TEXT_SPEED
end
end
function update(dt)
y = y + dy * dt
end
I hope this makes sense. Obviously this isn't all of my code and I've changed some of the variables, but I hope you get the gist of it.