Relocated call of `love.graphics.setDefaultFilter` to `love.load`
parent
f52a5eaee5
commit
8bd8c0eede
2
main.lua
2
main.lua
|
@ -1,6 +1,7 @@
|
||||||
function love.load()
|
function love.load()
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
highscores = {}
|
highscores = {}
|
||||||
|
love.graphics.setDefaultFilter("linear", "nearest")
|
||||||
require "load.rpc"
|
require "load.rpc"
|
||||||
require "load.graphics"
|
require "load.graphics"
|
||||||
require "load.fonts"
|
require "load.fonts"
|
||||||
|
@ -63,7 +64,6 @@ function love.draw()
|
||||||
love.graphics.push()
|
love.graphics.push()
|
||||||
|
|
||||||
-- get offset matrix
|
-- get offset matrix
|
||||||
love.graphics.setDefaultFilter("linear", "nearest")
|
|
||||||
local width = love.graphics.getWidth()
|
local width = love.graphics.getWidth()
|
||||||
local height = love.graphics.getHeight()
|
local height = love.graphics.getHeight()
|
||||||
local scale_factor = math.min(width / 640, height / 480)
|
local scale_factor = math.min(width / 640, height / 480)
|
||||||
|
|
Loading…
Reference in New Issue