This is the code:
Code: Select all
if badWords == true then
love.graphics.setFont(epilepsyFont)
epilepsy:draw(0, 0)
love.graphics.printf("STOP SWEARING!!!1!!11", 0, height/2, width, "center")
end
Code: Select all
if badWords == true then
love.graphics.setFont(epilepsyFont)
epilepsy:draw(0, 0)
love.graphics.printf("STOP SWEARING!!!1!!11", 0, height/2, width, "center")
end
Code: Select all
local Fonts = {}
function NewFont( String, Font )
local Index = #Fonts + 1
local Width = Font:getWidth( String )
local Height = Font:getHeight( 'A' ) -- This should do the trick, unless you use all lower-case, etc.
local OffsetX = Width / 2
local OffsetY = Height / 2
Fonts[Index] = { String, x, y, 0, 1, 1, OffsetX, OffsetY }
return Index
end
function SetPosition( Index, x, y )
Fonts[Index][2] = x
Fonts[Index][3] = y
end
function SetRotation( Index, Radians )
Fonts[Index][4] = Radians
end
-- Make other functions for other things, like scale, etc.
function Draw( Index )
love.graphics.print( Fonts[Index] )
end
Users browsing this forum: Bing [Bot] and 5 guests