Fix resolution and add scalefactor mod

This commit is contained in:
Robert Miles 2018-07-23 08:56:13 -04:00
parent f35b40efc7
commit cdaf7827d5
2 changed files with 6 additions and 4 deletions

View File

@ -11,10 +11,12 @@ function love.conf(t)
t.audio.mixwithsystem = true -- Keep background music playing when opening LOVE (boolean, iOS and Android only)
t.scalefactor = 2
t.window.title = "Funk" -- The window title (string)
t.window.icon = nil -- Filepath to an image to use as the window's icon (string)
t.window.width = 256*2 -- The window width (number)
t.window.height = 224*2 -- The window height (number)
t.window.width = 256*t.scalefactor -- The window width (number)
t.window.height = 240*t.scalefactor -- The window height (number)
t.window.borderless = false -- Remove all border visuals from the window (boolean)
t.window.resizable = false -- Let the window be user-resizable (boolean)
t.window.minwidth = 1 -- Minimum window width if the window is resizable (number)

View File

@ -3,7 +3,7 @@ local log = require("log")
local pal = require("palette").getPalette("CADE-15")
function love.load()
require("cindy").applyPatch()
scr = love.graphics.newCanvas(256,244)
scr = love.graphics.newCanvas(256,240)
love.graphics.setCanvas(scr)
pal.setColor(10)
love.graphics.rectangle("fill",0,0,5,5)
@ -17,5 +17,5 @@ end
function love.draw()
love.graphics.setBackgroundColor(0,0,0)
love.graphics.setColor(255,255,255)
love.graphics.draw(scr,0,0,0,2,2)
love.graphics.draw(scr,0,0,0,CONFIG.scalefactor,CONFIG.scalefactor)
end