diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-02 12:16:12 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-02 12:16:12 +0200 |
commit | 1b9b0193c00e0d54cf1b50635d33b3bbce60e872 (patch) | |
tree | f74d8052024750775789adcaa1109d98a5295f7b /main.lua | |
parent | f28674114986a4b345c50b4815fbef11766b1b51 (diff) | |
download | roflnauts-1b9b0193c00e0d54cf1b50635d33b3bbce60e872.zip roflnauts-1b9b0193c00e0d54cf1b50635d33b3bbce60e872.tar.gz roflnauts-1b9b0193c00e0d54cf1b50635d33b3bbce60e872.tar.bz2 |
Clean-up obsolete fonts
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,8 @@ end -- Should be moved to scene/camera function getScale() - return math.max(1, math.floor(love.graphics.getWidth() / 320)-1, math.floor(love.graphics.getHeight() / 180)-1) + return getRealScale() + --return math.max(1, math.floor(love.graphics.getWidth() / 320)-1, math.floor(love.graphics.getHeight() / 180)-1) end function getRealScale() return math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180) @@ -46,9 +47,8 @@ function love.load() love.graphics.setDefaultFilter("nearest", "nearest") -- Font - -- 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-,!:()[]{}<> - Font = love.graphics.newImageFont("assets/font4.png", " 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,:;-_/\\!@#$%^&*?=+~`|'\"()[]{}<>", -1) - Bold = love.graphics.newImageFont("assets/font3.png", " 0123456789AEFILNORSTUW", -2) + Font = love.graphics.newImageFont("assets/font-normal.png", " 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,:;-_/\\!@#$%^&*?=+~`|'\"()[]{}<>", -1) + Bold = love.graphics.newImageFont("assets/font-big.png", " 0123456789AEFILNORSTUW", -2) Font:setLineHeight(9/16) love.graphics.setFont(Font) |