Code: Select all
local label = "I AM NOT A LABEL :3"
local width = love.window.getWidth()
function love.draw()
love.graphics.printf(label, width, 0, width/2, 'right') -- string, x, y, limit, alignment (and other optional stuff after)
end
Code: Select all
local label = "I AM NOT A LABEL :3"
local width = love.window.getWidth()
function love.draw()
love.graphics.printf(label, width, 0, width/2, 'right') -- string, x, y, limit, alignment (and other optional stuff after)
end
Code: Select all
-- in love.load:
-- ...
joysticks = love.joystick.getJoysticks()
joystick = joysticks[#joysticks] -- no need for the for loop
-- ...