Window mode:

Fullscreen mode:

I found out this happens both on Windows and on Mac OSX. Is this supposed to happen? Thank you in advance!
As a noobie, I definitely want to learn more about this. :0 Any good samples or tutorials to learn from?Jasoco wrote:It's definitely more preferred these days to not change the resolution if you can. Especially to low ones from the early days of computing.
...
If you want advice, I can try and answer and provide samples.
Code: Select all
t.window.resizable = true
t.window.fullscreentype = "desktop"
Code: Select all
local s = love.window.getHeight() / 448 --Where 448 is the height you are drawing your game content at; Change this if/when needed
love.push()
love.scale(s)
Code: Select all
love.pop()
Code: Select all
Error: main.lua:32: attempt to call field 'push' (a nil value)
stack traceback:
main.lua:32: in function 'draw'
[string "boot.lua"]:438: in function <[string "boot.lua"]:399>
[C]: in function 'xpcall'
Code: Select all
function love.load()
awesomecanvas = love.graphics.newCanvas(512, 448)
awesomecanvas:setFilter("nearest", "nearest")
-- and the rest of your love.load of course
end
function love.draw2() -- this is your current love.draw function, you just have to rename it to something else
...
end
function love.draw()
awesomecanvas:renderTo(love.draw2)
local w = love.window.getWidth()
local h = love.window.getHeight()
local s = math.floor(h/448)
love.graphics.draw(awesomecanvas, w*0.5 - s*512, h*0.5 - s*448, 0, s, s)
end
Users browsing this forum: Amazon [Bot], Bing [Bot] and 6 guests