Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3409fdfa73
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (32 sloc) 0.836 kb
game = {
graphics = {
fullscreen = false,
mode = { height = love.graphics.getHeight(), width = love.graphics.getWidth() }
},
fonts = {},
renderer = require('renderers/ascii')
}
function game:createFonts(offset)
self.fonts = {
lineHeight = (10 + offset) * 1.7,
small = love.graphics.newFont(10 + offset),
regular = love.graphics.newFont(14 + offset),
large = love.graphics.newFont(24 + offset),
very_large = love.graphics.newFont(48 + offset)
}
end
function game:setMode(mode)
self.graphics.mode = mode
love.graphics.setMode(mode.width, mode.height)
if self.graphics.mode.height < 600 then
self:createFonts(-2)
else
self:createFonts(0)
end
if self.view.updateDisplay then
self.view.updateDisplay()
end
end
function game:start()
game.current_state = MapState()
end
Jump to Line
Something went wrong with that request. Please try again.