font sizes
Posted: Tue Jul 07, 2015 2:38 pm
Hi,
I am making a game however I have run into a problem I am trying to set multiple font sizes but it is not working here is the code
I am making a game however I have run into a problem I am trying to set multiple font sizes but it is not working here is the code
Code: Select all
font1 = love.graphics.newFont('assets/font1.ttf', 150)
font2 = love.graphics.newFont('assets/font2.ttf', 50)
function love.load()
backgroundImg = love.graphics.newImage('assets/background.png')
title = true
end
function love.update()
end
function love.draw()
love.graphics.draw(backgroundImg, 0, 0)
if title == true then
love.graphics.setFont(font1)
love.graphics.print('Dodge', 100, 20)
love.graphics.setFont(font2)
love.graphics.print('Play', 100, 300)
end
end