Search found 74 matches

by RNavega
Tue Mar 30, 2021 10:19 am
Forum: Support and Development
Topic: Enforce just one instance?
Replies: 21
Views: 5866

Re: Enforce just one instance?

After some more research, instead of using shared memory objects like I suggested before, there's a safer solution based on this library: https://github.com/oblique/named-lock/tree/master/src It uses a named mutex on Windows (so your program can lock that mutex, which is a memory object, and if any ...
by RNavega
Thu Mar 25, 2021 10:59 am
Forum: Support and Development
Topic: Enforce just one instance?
Replies: 21
Views: 5866

Re: Enforce just one instance?

What the Qt libraries use for this is a 'shared memory object', something used with IPC ("interprocess communication"). It's a named block of memory that different processes can access and read/write to like a file that exists in system memory. It's got a unique name, that's how different ...
by RNavega
Tue Mar 16, 2021 6:18 am
Forum: General
Topic: Fast Rope Physics for bump.lua?
Replies: 21
Views: 5609

Re: Fast Rope Physics for bump.lua?

You could port some Verlet engine into Lua, the rope would consist of several linked segments (like 100 total), each with a distance constraint. There are tons of live Verlet physics demos online using HTML5: - https://subprotocol.com/system/tree.html - https://codepen.io/guerrillacontra/pen/XPZeww ...
by RNavega
Sat Mar 13, 2021 4:40 pm
Forum: General
Topic: Apps for Animation?
Replies: 5
Views: 2390

Re: Apps for Animation?

Maybe a browser-based tool: http://tmtg.nl/tinyspriteeditor/

Google also suggested PiskelApp, but its website was offline when I tried to visit it: viewtopic.php?t=83198
by RNavega
Mon Mar 01, 2021 3:26 am
Forum: Support and Development
Topic: AABB Collision help?
Replies: 8
Views: 1635

Re: AABB Collision help?

Code: Select all

if (px1 < bx2) and (px1 > bx2)
Hi. How can px1 be both smaller and bigger than the same value?

I think you meant...

Code: Select all

if (px1 >= bx1) and (px1 <= bx2)
by RNavega
Fri Jan 22, 2021 6:57 am
Forum: Support and Development
Topic: Circular collisions with PNGs
Replies: 4
Views: 5176

Re: Circular collisions with PNGs

You don't need the square root if you only care about comparing the distances (equal, bigger-than or smaller-than) and don't need the actual distance value. You can compare with squared radii because of the following principle: If X > Y, then X² > Y² ("If a number is bigger than another number,...
by RNavega
Fri Jan 22, 2021 6:49 am
Forum: Support and Development
Topic: Drawing lines around tiles
Replies: 10
Views: 9245

Re: Drawing lines around tiles

Here's an idea, done in two sections, A and B: Section A: A1) Sort all tiles into two tables: one table for boundary tiles (any tiles that touch empty space on one or more sides so they need the outline effect), and a second table with all "inner" tiles (any tiles that are completely surro...
by RNavega
Fri Jan 22, 2021 6:23 am
Forum: General
Topic: Does anyone know how I get Lua installed and running on Windows?
Replies: 3
Views: 4861

Re: Does anyone know how I get Lua installed and running on Windows?

When I need a Lua shell to test some regex, math formulas or some syntax that I forgot, I fire up the LuaJIT binary provided by the generous LuaPower project. You can get the binaries in here:
https://github.com/luapower/luajit/tree/master/bin
by RNavega
Sun Jan 17, 2021 4:05 am
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.3 Release
Replies: 99
Views: 124250

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

I haven't tested it, but if you're supposed to require the helper modules during your program, like the 'matrices' module for example, wouldn't G3D_PATH still need to exist then? EDIT: Hm, this could be solved by putting all the helper modules into the 'g3d' object, then you can safely clear G3D_PAT...
by RNavega
Thu Jan 14, 2021 2:13 pm
Forum: General
Topic: Randomly generating objects
Replies: 3
Views: 6409

Re: Randomly generating objects

Looks related to their thread about making a flappybird clone game, in here:
https://love2d.org/forums/viewtopic.php?t=90016