Search found 947 matches

by grump
Sat Aug 25, 2018 5:33 pm
Forum: Support and Development
Topic: Inconvenience: Errors upon unused shader uniforms
Replies: 4
Views: 9476

Re: Inconvenience: Errors upon unused shader uniforms

It's not a matter of what LÖVE does. Is a matter of how shader programs are specified. Unused uniforms means a shader is invalid with regard to that specification. What exactly do you think should happen when you try to use an invalid shader? You can catch errors using pcall if you need a certain be...
by grump
Wed Aug 22, 2018 9:44 am
Forum: Support and Development
Topic: Followed the Physics tutorial, but nothing shows up
Replies: 2
Views: 1952

Re: Followed the Physics tutorial, but nothing shows up

You're running this with LÖVE < 11 with color values that only work in 11. Remove/replace the setColor lines and something will show up.
by grump
Tue Jul 31, 2018 12:51 pm
Forum: Support and Development
Topic: how use the love.filesystem
Replies: 1
Views: 1636

Re: how use the love.filesystem

You can only write to the save directory. It is different from the working directory, and the only control you have over it is setting its name (not path/location) through the game's identity. This is all explained here.
by grump
Fri Jul 27, 2018 7:16 am
Forum: Support and Development
Topic: Is it possible to make an animated perspective texture WITHOUT a shader?
Replies: 5
Views: 4221

Re: Is it possible to make an animated perspective texture WITHOUT a shader?

molul wrote: Thu Jul 26, 2018 5:22 pm Is there a more efficient system to animate a mesh's UVs?
Yes... a vertex shader.
by grump
Sat Jul 14, 2018 10:26 pm
Forum: Support and Development
Topic: Reading a text file with raw data (no common format)
Replies: 1
Views: 1154

Re: Reading a text file with raw data (no common format)

Code: Select all

local numbers = {}
for line in assert(love.filesystem.lines('filename.txt')) do
    numbers[#numbers + 1] = assert(tonumber(line))
end
by grump
Wed Jul 11, 2018 11:17 am
Forum: Support and Development
Topic: [SOLVED] Z order drawing
Replies: 2
Views: 3048

Re: Z order drawing

You can use the sorted table approach as shown in the tutorial. Keep your enemy sprites in a table and keep that table sorted according to a z value that you assign each enemy. Draw sprites in the order they have in the table. table.sort is not a stable sort though. Enemies with the same z value wil...
by grump
Sat Jun 30, 2018 11:29 am
Forum: Libraries and Tools
Topic: Möan.lua - A simple messagebox system.
Replies: 40
Views: 88975

Re: Möan.lua - A simple messagebox system.

...and you didn't feel like telling us that the errors you made this thread for magically solved themselves and that you have a different problem with it now? You're not using it correctly, you have to call Moan.draw to see something. And calling Moan.speak in every frame may also not be correct, bu...
by grump
Sat Jun 30, 2018 11:13 am
Forum: Libraries and Tools
Topic: Möan.lua - A simple messagebox system.
Replies: 40
Views: 88975

Re: Möan.lua - A simple messagebox system.

There is no error.
by grump
Sat Jun 30, 2018 10:02 am
Forum: Libraries and Tools
Topic: Möan.lua - A simple messagebox system.
Replies: 40
Views: 88975

Re: Möan.lua - A simple messagebox system.

These errors do not match the current state of that lib. Check again if you didn't do any modifications to it, or whether you're using an older version.

If you can't find the error, post a love file. The code you posted is not the culprit.

And don't triple post, edit your comments to add new info.
by grump
Sat Jun 30, 2018 9:26 am
Forum: Libraries and Tools
Topic: Möan.lua - A simple messagebox system.
Replies: 40
Views: 88975

Re: Möan.lua - A simple messagebox system.

Actually, aftwr checking the repo. It should be ``` local Moan = require("moan") ``` Not ``` require("moan") ``` I checked it too and Moan.lua declares a global Moan table. OP's Moan.speak call should work as is with the current Moan.lua from the repo. require('Moan') Moan.speak...