Posts by MarcosDev • 11 points
2 posts
-
1
votes1
answer29
viewsA: Lua / Love2d: Error when trying to give require.Tree("code") : Attempt to index global 'require' (a Function value)
Hello, good night! From what I understand, you are trying to import a library in the code, correct? Geralmete do it as follows: function love.load() lib = require "nome da pasta ou arquivo" end an…
-
-2
votes1
answer60
viewsA: Error in Lua with LOVE2D
Hello, good night. The error here is very simple and common. It’s just missing a simple comma after the WINDOW_HEIGHT. Follow the code function love.load() push:setupScreen(VIRTUAL_WIDTH,…