Search found 385 matches

by RNavega
Sat Dec 21, 2024 3:05 pm
Forum: Support and Development
Topic: Porting flashlight effect from clickteam to love
Replies: 4
Views: 571

Re: Porting flashlight effect from clickteam to love

this shader I based on the fusion effect called projection and give a aspect of 3D projection Ah cool, like a spherical or cylindrical projection. https://www.youtube.com/watch?v=g_Fxc9_V7Vc (And also this ) It's very effective. I already tried inverting the colors in some image editor to avoid pas...
by RNavega
Sat Dec 21, 2024 2:43 pm
Forum: Support and Development
Topic: Feature request copy file, and paste path
Replies: 4
Views: 507

Re: Feature request copy file, and paste path

Hi, see if this is of any use: https://love2d.org/wiki/love.system.getClipboardText Edit: I know there's the option to read the contents of the clipboard with text, but not from a file. If you've already tried that command then nevermind. But I'm curious if the text has the file paths you're after. ...
by RNavega
Sat Dec 21, 2024 12:08 pm
Forum: Support and Development
Topic: Porting flashlight effect from clickteam to love
Replies: 4
Views: 571

Re: Porting flashlight effect from clickteam to love

Hello. A couple of questions: - What is that perspective shader being used for, I see a FOV and other parameters, is it like a pincushion effect? (This is just curiosity and not related to your problem.) - If roomOff is always under the same invert shader, couldn't that result be baked into the disc...
by RNavega
Sat Dec 21, 2024 2:26 am
Forum: Support and Development
Topic: How to bake in Administrator request into compiled .exe
Replies: 4
Views: 646

Re: How to bake in Administrator request into compiled .exe

When you create a shortcut to an executable on Windows, in the properties of that shortcut you can set it to always "Run As Administrator". This is a flag on the shortcut file (.LNK), not the executable, which stays the same. So a suggestion is to test creating a .LNK file to your executab...
by RNavega
Fri Dec 20, 2024 1:52 am
Forum: Support and Development
Topic: enemy/projectile collisions stops working when colliding with 2 or more bullets
Replies: 5
Views: 1155

Re: enemy/projectile collisions stops working when colliding with 2 or more bullets

also, careful with organized tables loops (such as ipairs), because when you remove an item while iterating (like on your line 25), the next iteration index has been moved 1 down. I would recommend iterating end-to-start After reading your comment (great catch btw), I was going to suggest " us...
by RNavega
Wed Dec 18, 2024 1:15 pm
Forum: Support and Development
Topic: How to change screenspace origin?
Replies: 14
Views: 2570

Re: How to change screenspace origin?

Brilliant, thanks for sharing.

PS it's music =D
https://forums.factorio.com/viewtopic.p ... 56#p303556
by RNavega
Tue Dec 17, 2024 3:40 am
Forum: Support and Development
Topic: How to change screenspace origin?
Replies: 14
Views: 2570

Re: How to change screenspace origin?

The zoom to mouse solution: https://love2d.org/forums/viewtopic.php?p=236724#p236724 Thanks for the link darkfrei! I like how you're using a power of two (that dscale factor) to make the zoom steps always exact, I hadn't thought of that before. If there's no rotation involved then, as your demo sho...
by RNavega
Mon Dec 16, 2024 2:10 pm
Forum: General
Topic: How to use gRPC in LOVE?
Replies: 5
Views: 1491

Re: How to use gRPC in LOVE?

Of course, good luck. To add to that, the second example shows the use of luaL_register() : https://github.com/mostvotedplaya/Lua-C-Module/blob/master/example.c#L49-L56 From the docs, that's the ideal function to use to help set up your C module as a library to be used back in Lua, it saves you time...
by RNavega
Sun Dec 15, 2024 7:35 pm
Forum: Support and Development
Topic: scaling sprite from center
Replies: 2
Views: 849

Re: scaling sprite from center

Hi, yes, from the center or any other location. The easiest way to do that is by using the "origin offset" coordinates, it's the ox , oy parameters found in either the love.graphics.draw() function where you manually set them, or when creating/modifying a Transform object (see the docs for...
by RNavega
Sun Dec 15, 2024 6:47 pm
Forum: General
Topic: How to use gRPC in LOVE?
Replies: 5
Views: 1491

Re: How to use gRPC in LOVE?

Hi, welcome. I think the entry function needs to return 1? At least that's what I'm seeing in other people's examples of C modules: https://github.com/Seng3694/CLuaModuleExample/blob/master/src/custommath.c https://github.com/mostvotedplaya/Lua-C-Module/blob/master/example.c And also, on Windows (li...