Search found 2416 matches

by pgimeno
Sat Jan 23, 2021 7:05 pm
Forum: Games and Creations
Topic: Snek Maze - 2D android puzzle game
Replies: 10
Views: 470

Re: Snek Maze - 2D android puzzle game

Looks cool. It reminds me a lot of teleko (for Löve 0.9).
by pgimeno
Thu Jan 21, 2021 11:44 am
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.2 Release
Replies: 76
Views: 83501

Re: Groverburger's 3D Engine (g3d) v1.1 Release

groverburger wrote:
Thu Jan 21, 2021 12:12 am
grump, there does appear to be some default depth buffer.
Only in some graphics drivers, I believe.
by pgimeno
Tue Jan 19, 2021 10:13 am
Forum: Support and Development
Topic: [Solved]Rotating and drawing object to target correctly
Replies: 5
Views: 280

Re: Rotating and drawing object to target correctly

It's a pretty minimal example, but yeah, the attitude... Looking into the code, it looks to me that the main problem is the overcomplicating of formulas, resulting in incorrect output (like, pi squared??), and the improper use of origin x and y (confusion of variables, it uses the one for v instead ...
by pgimeno
Mon Jan 18, 2021 8:52 pm
Forum: Support and Development
Topic: [Solved] How to get Display Index
Replies: 2
Views: 162

Re: How to get Display Index

It's basic table indexing.

Code: Select all

love.graphics.print(select(3, love.window.getMode()).display)
The select() is there just for accessing the third element directly. This works too:

Code: Select all

local w, h, flags = love.window.getMode()
love.graphics.print(flags.display)
by pgimeno
Sun Jan 17, 2021 6:05 pm
Forum: Support and Development
Topic: Handling POSIX Signals
Replies: 6
Views: 330

Re: Handling POSIX Signals

By save directory, you mean what would normally be ~/.love/game_id/ ? I mean whatever love.filesystem.getSaveDirectory () returns, or any subdirectory inside that. I think it defaults to ~/.local/share/love/game_id/ on Linux. Note I haven't tried this, I've just seen it mentioned in this forum at s...
by pgimeno
Sun Jan 17, 2021 2:59 am
Forum: Support and Development
Topic: Handling POSIX Signals
Replies: 6
Views: 330

Re: Handling POSIX Signals

Technically, the POSIX requirement is only for one platform, so I'd only need to build one binary library. For which platform? Linux? Android? MacOS? iOS? All four can handle POSIX signals. Basically, all the platforms Löve supports except Windows. How does one include and distribute those compiled...
by pgimeno
Sat Jan 16, 2021 6:18 pm
Forum: Support and Development
Topic: Handling POSIX Signals
Replies: 6
Views: 330

Re: Handling POSIX Signals

You can install and require luaposix, then just call its functions. Distribution is going to be a problem, though, as binary libraries need to be included for all POSIX platforms you intend to support. But if it's for your own use, no problem.
by pgimeno
Sat Jan 16, 2021 6:00 pm
Forum: Libraries and Tools
Topic: SUPER STRICT for LUA
Replies: 28
Views: 3798

Re: SUPER STRICT for LUA

not can be stacked more than twice, just saying that more than two should parse fine as well. :3 Indeed, that's pretty common with e.g. flux, see https://gist.github.com/rxi/11265117#file-tinysquares-lua-L19 This sounds like it's going to be an endless whack-a-bug. Luacheck's parser already covers ...
by pgimeno
Fri Jan 15, 2021 1:34 pm
Forum: Support and Development
Topic: Master tables
Replies: 6
Views: 433

Re: Master tables

I've written sort of a tutorial on metatables: https://codeberg.org/pgimeno/Gists/src/ ... e-tutorial

It covers most of the fine details of how metatables work, including some advanced aspects.
by pgimeno
Wed Jan 13, 2021 5:33 pm
Forum: Support and Development
Topic: Master tables
Replies: 6
Views: 433

Re: Master tables

MrFariator wrote:
Wed Jan 13, 2021 5:22 pm

Code: Select all

  __call = function(master, child) end
Are you sure that's correct? You're defining __call as a global. I haven't seen the OP's code though, so maybe it makes more sense in the context of the program.