From: Nathaniel Wesley Filardo Date: Sun, 19 Aug 2018 00:55:58 +0000 (+0100) Subject: Minor updates to Love-based renderer X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=0c1c8a5a56ff9b851b54fffe75742a5b976a89e5;p=acmetensortoys-esp-lua_lamp Minor updates to Love-based renderer Blockier pixels Add a conf.lua to turn most of the framework off --- diff --git a/linux-draw-love/conf.lua b/linux-draw-love/conf.lua new file mode 100644 index 0000000..3c45e9c --- /dev/null +++ b/linux-draw-love/conf.lua @@ -0,0 +1,21 @@ +function love.conf(t) + t.version = "11.0" -- The LÖVE version this game was made for (string) + t.modules.audio = false -- Enable the audio module (boolean) + t.modules.data = false -- Enable the data module (boolean) + t.modules.event = true -- Enable the event module (boolean) + t.modules.font = false -- Enable the font module (boolean) + t.modules.graphics = true -- Enable the graphics module (boolean) + t.modules.image = true -- Enable the image module (boolean) + t.modules.joystick = false -- Enable the joystick module (boolean) + t.modules.keyboard = false -- Enable the keyboard module (boolean) + t.modules.math = true -- Enable the math module (boolean) + t.modules.mouse = false -- Enable the mouse module (boolean) + t.modules.physics = false -- Enable the physics module (boolean) + t.modules.sound = false -- Enable the sound module (boolean) + t.modules.system = true -- Enable the system module (boolean) + t.modules.thread = true -- Enable the thread module (boolean) + t.modules.timer = true -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update + t.modules.touch = false -- Enable the touch module (boolean) + t.modules.video = false -- Enable the video module (boolean) + t.modules.window = true -- Enable the window module (boolean) +end diff --git a/linux-draw-love/main.lua b/linux-draw-love/main.lua index 38119d2..580ced9 100644 --- a/linux-draw-love/main.lua +++ b/linux-draw-love/main.lua @@ -42,6 +42,7 @@ function love.run() local imgd = framechan:demand(1) if imgd then local img = love.graphics.newImage(imgd) + img:setFilter('nearest') love.graphics.clear(love.graphics.getBackgroundColor()) love.graphics.draw(img, 0, 0, 0, 4, 4) end