]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_lamp/commitdiff
Minor updates to Love-based renderer
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 19 Aug 2018 00:55:58 +0000 (01:55 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sun, 19 Aug 2018 00:55:58 +0000 (01:55 +0100)
Blockier pixels
Add a conf.lua to turn most of the framework off

linux-draw-love/conf.lua [new file with mode: 0644]
linux-draw-love/main.lua

diff --git a/linux-draw-love/conf.lua b/linux-draw-love/conf.lua
new file mode 100644 (file)
index 0000000..3c45e9c
--- /dev/null
@@ -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
index 38119d260a3452069f7f8a61d1890513048c1e51..580ced9cec0bc6772631b719ffa17430e4878cb3 100644 (file)
@@ -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