Search found 249 matches

by RNavega
Thu Feb 01, 2024 8:58 am
Forum: General
Topic: Zerobrane. and love
Replies: 4
Views: 1112

Re: Zerobrane. and love

If you haven't already seen this, there's a sticky thread about packing your game into a .love: https://love2d.org/forums/viewtopic.php?t=451 I don't know if they're still updated, but there's some distribution tools in here, they're meant to automate the boring parts: https://github.com/love2d-comm...
by RNavega
Tue Jan 30, 2024 11:13 pm
Forum: General
Topic: Using love while learning c++
Replies: 6
Views: 1244

Re: Using love while learning c++

Oh, and using LuaJIT's FFI you can load library binaries like .DLL on Windows and .SO on Android / Linux, as seen here: https://love2d.org/forums/viewtopic.php?p=223319#p223319 You can build those binaries with C++ and a C extern interface, and use them in your Löve programs later. See this: https:/...
by RNavega
Tue Jan 30, 2024 6:48 am
Forum: General
Topic: Using love while learning c++
Replies: 6
Views: 1244

Re: Using love while learning c++

Not saying that you shouldn't learn C++, only you can know what's important for you.
But for you to consider learning C# instead. This would let you use Godot, Unity etc.

And C# is much closer to C++ than Lua is, so you will be closing the distance in any case.
by RNavega
Mon Jan 29, 2024 5:44 am
Forum: General
Topic: Camera jittering
Replies: 13
Views: 2215

Re: Camera jittering

Actually, f*** it, let's go all out.
There's no better way to test nearest-neighbor filtering than some parallax scrolling with a very subtle decay.

preview.png
preview.png (15.63 KiB) Viewed 1058 times
by RNavega
Mon Jan 29, 2024 3:21 am
Forum: General
Topic: Camera jittering
Replies: 13
Views: 2215

Re: Camera jittering

@ddabrahim can you test this? preview.gif The "sprite.png" image is this: sprite.png The main.lua code is this: local sprite local spriteX = 170 local pixelCanvas function love.load() love.window.setMode(640, 400) -- Twice the pixel art canvas size. love.graphics.setDefaultFilter('nearest'...
by RNavega
Sun Jan 28, 2024 3:39 am
Forum: General
Topic: Camera jittering
Replies: 13
Views: 2215

Re: Camera jittering

I suggest creating a new folder / project just to stress-test these things out in isolation.
If you can get them to work, then you know the problem is somewhere else in your code
by RNavega
Tue Jan 23, 2024 2:23 am
Forum: Support and Development
Topic: 2D lighting engines
Replies: 12
Views: 27981

Re: 2D lighting engines

Ninja'ed by Vilonis xD (I didn't see your earlier post)
by RNavega
Mon Jan 22, 2024 10:43 pm
Forum: Support and Development
Topic: 2D lighting engines
Replies: 12
Views: 27981

Re: 2D lighting engines

Actually, I could do with some help for it - currently the lighting is very smooth, and I'd rather it's pixellated and alligned with the texture, which could help with optimising if its at it's native resolution, however short of rendering each texture to a canvas every frame, I can't think of a go...
by RNavega
Sat Jan 20, 2024 4:25 am
Forum: Support and Development
Topic: Detecting if Keylock is on?
Replies: 4
Views: 993

Re: Detecting if Keylock is on?

That's okay. If ZeroBrane is using the latest official release of Löve, 11.5, then as you noticed it won't have love.keyboard.isModifierActive. But using LuaJIT's FFI module, you can create a backport of love.keyboard.isModifierActive directly in a Lua script, like this: io.stdout:setvbuf('no') loca...
by RNavega
Sat Jan 20, 2024 12:25 am
Forum: Support and Development
Topic: Detecting if Keylock is on?
Replies: 4
Views: 993

Re: Detecting if Keylock is on?

https://love2d.org/wiki/love.keyboard.isModifierActive Nice, didn't know about that one. Up to this moment it looks to be in the Löve 12.0 development branch, the source is this: https://github.com/love2d/love/blob/12.0-development/src/modules/keyboard/sdl/Keyboard.cpp#L88-L107 @Silver_Wolf what ar...