Search found 947 matches

by grump
Thu Feb 15, 2018 9:47 am
Forum: Support and Development
Topic: Enumerate files outside of root / save directory, recursively
Replies: 22
Views: 13430

Re: Enumerate files outside of root / save directory, recursively

You can use LuaJITs ffi API to access the filesystem functions of the OS, if you know a bit about C programming. This one kind of works, both for Windows and POSIX systems, although it's not very good code. It works for simple use cases. There's also at least 2 LFS implementations in pure ffi code (...
by grump
Wed Feb 14, 2018 4:13 pm
Forum: General
Topic: BYTEPATH tutorial - making a complete game with LÖVE
Replies: 4
Views: 15438

Re: BYTEPATH tutorial - making a compleis te game with LÖVE

Wow, that looks really awesome. Excellent work! Creative abuse of the github issue tracker as a blog host too, lol. i like it. Any reasons why you chose this approach instead of using the wiki? Did you plan on making the tutorial right from the beginning? Like, "I'm gonna make a game as a tutor...
by grump
Fri Feb 09, 2018 1:03 pm
Forum: Support and Development
Topic: Equivalent to Gamemaker's sign() function?
Replies: 49
Views: 20894

Re: Equivalent to Gamemaker's sign() function?

Code: Select all

function sign(n)
	return n < 0 and -1 or n > 0 and 1 or 0
end
by grump
Sun Feb 04, 2018 2:19 am
Forum: Support and Development
Topic: Scaling for android
Replies: 8
Views: 13395

Re: Scaling for android

I don't think there's any easy "plug & play" solution; you need to create a comprehensive scaling engine that will cover all parts of your game. If someone knows of a better way, I'm all ears! :monocle: It all comes down to the fact that there's no way to query transformation states i...
by grump
Sat Feb 03, 2018 10:10 am
Forum: Support and Development
Topic: Garbage collector stops the game[or probably disk access]
Replies: 24
Views: 13354

Re: Garbage collector stops the game[or probably disk access]

Does not crash anymore, Debian x64 and Win10 x64.
by grump
Sat Feb 03, 2018 7:24 am
Forum: Support and Development
Topic: Garbage collector stops the game[or probably disk access]
Replies: 24
Views: 13354

Re: Garbage collector stops the game[or probably disk access]

In the 64 bit machine, it loads and shows the screen; it crashes when I move a bit (not immediately but shortly after I start moving). Same behavior on my Linux machine, same error, same stacktrace. $ uname -a Linux deb9 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux No e...
by grump
Fri Feb 02, 2018 3:51 pm
Forum: Support and Development
Topic: Using modf in shader
Replies: 11
Views: 5685

Re: Using modf in shader

How to reproduce:

1. View the file on the default branch: link
2. Switch tag to 0.10.2
3. ???
4. Profit!
by grump
Fri Feb 02, 2018 3:43 pm
Forum: Support and Development
Topic: Using modf in shader
Replies: 11
Views: 5685

Re: Using modf in shader

Thanks, this one works. I wonder how I managed to make Bitbucket give me a broken link.
by grump
Fri Feb 02, 2018 2:38 pm
Forum: Support and Development
Topic: Using modf in shader
Replies: 11
Views: 5685

Re: Using modf in shader

Well, the defaults are hardcoded, but to me it seems that would be possible to study the code and use love.graphics._setDefaultShaderCode to work around that limitation, without modifying the Löve sources. It would certainly be possible, but that requires to actually read the code and not just skim...
by grump
Fri Feb 02, 2018 10:47 am
Forum: Support and Development
Topic: Using modf in shader
Replies: 11
Views: 5685

Re: Using modf in shader

It's hardcoded in src/modules/graphics/wrap_Graphics.lua, so you'd have to change the source code. The upcoming 0.11 seems to have support for newer versions.