Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function love.load()
- love.window.setMode(800,600, {vsync = true})
- love.graphics.setBackgroundColor(0,0,0)
- winwidth = love.graphics.getWidth()
- winheight = love.graphics.getHeight()
- gamestate = "menu"
- titleFont = love.graphics.newFont("calibri.ttf",40)
- love.graphics.setFont(titleFont)
- titleText = "CRYPTIC\nCROSSWORDS"
- titleTextWidth,titleTextHeight = titleFont:getWidth(titleText),titleFont:getHeight(titleText)
- end
- function love.update(dt)
- end
- function love.draw()
- if gamestate == "menu" then
- love.graphics.print(titleText, (winwidth/2)-(titleTextWidth/2), (winheight/2)-(titleTextHeight/2))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement