Search found 457 matches

by RNavega
Tue Apr 01, 2025 1:22 am
Forum: General
Topic: Mouse Position to Isometric to Tiles?
Replies: 4
Views: 443

Re: Mouse Position to Isometric to Tiles?

tf:setMatrix( ts, -ts, 0, x0, .5*ts, .5*ts, -ts, y0, 0, 0, 1, 0, 0, 0, 0, 1) Hi, how did you reach that formulation? I can see the x0, y0 as the position elements, but the X basis vector and Y basis vector (with a Z component), those are wooshing over my head.
by RNavega
Mon Mar 31, 2025 12:10 am
Forum: General
Topic: Mouse Position to Isometric to Tiles?
Replies: 4
Views: 443

Re: Mouse Position to Isometric to Tiles?

Also checkout darkfrei's demos in here: viewtopic.php?p=261925&sid=ae1e665b855f ... 25#p261925
by RNavega
Sun Mar 30, 2025 12:02 pm
Forum: Support and Development
Topic: Does my game need an optimazation or its normal?
Replies: 2
Views: 367

Re: Does my game need an optimazation or its normal?

If you create a main.lua file with an empty love.draw() and love.update(), what CPU usage do you get? If on your system thatd stay at like 4%, you'll know that even if you optimized the heck out of your program, the overhead from SDL2 and LuaJIT and the love.run() mainloop won't let you get lower th...
by RNavega
Sun Mar 23, 2025 5:26 pm
Forum: General
Topic: ECS -- is it ok to have a method/function as a component ?
Replies: 11
Views: 1893

Re: ECS -- is it ok to have a method/function as a component ?

First of all, one more time thank you for your participation and help. It's insane how you're involved ! As a hobbyist I've never really learned about ECS, so this is a good opportunity to look into it a bit more. P.S. I apologize for any kind of rude words if any --- it is just my reaction in this...
by RNavega
Sat Mar 22, 2025 11:51 pm
Forum: General
Topic: ECS -- is it ok to have a method/function as a component ?
Replies: 11
Views: 1893

Re: ECS -- is it ok to have a method/function as a component ?

How the system knows what animation it should set ? Can you think of a single animation system that will work for all animated entities in your game? How should the animation component used by that system be structured so that it can be used on all animated entities? An entity in ECS is just an ide...
by RNavega
Fri Mar 21, 2025 4:49 pm
Forum: Support and Development
Topic: Accessing LÖVE C++ internals via luajit FFI
Replies: 5
Views: 727

Re: Accessing LÖVE C++ internals via luajit FFI

On Linux it seems I can just link to libGL statically, not sure if that is somehow illicit, it's working for me: :awesome: Thanks for testing. It probably is illicit 8) I see that you moved it to the inside of love.draw(), so I'm curious: does the canvas texture ID change frequently? I was original...
by RNavega
Thu Mar 20, 2025 9:37 pm
Forum: Support and Development
Topic: Accessing LÖVE C++ internals via luajit FFI
Replies: 5
Views: 727

Re: Accessing LÖVE C++ internals via luajit FFI

Couldn't you use the color attachment of the main framebuffer instead? The below is for Windows only. Getting the "name" (more like ID) of GL_COLOR_ATTACHMENT0 of the main framebuffer ( Edit: actually whatever framebuffer that is currently bound, which is assumed to be the main one as the ...
by RNavega
Tue Mar 18, 2025 6:18 am
Forum: Support and Development
Topic: Silent iOS
Replies: 4
Views: 972

Re: Silent iOS

Hi. So, if the user has set their phone to silent mode, shouldn't the app follow that? That sounds reasonable, unless I'm missing something -- like if games usually ignore the audio setting and make sounds anyway.
by RNavega
Mon Mar 17, 2025 9:00 pm
Forum: Support and Development
Topic: Collisions just don't want to work
Replies: 5
Views: 1049

Re: Collisions just don't want to work

For reference, there's yet another AABB collision routine in here:
viewtopic.php?t=96288
by RNavega
Fri Mar 14, 2025 8:08 am
Forum: General
Topic: ECS -- is it ok to have a method/function as a component ?
Replies: 11
Views: 1893

Re: ECS -- is it ok to have a method/function as a component ?

I'm thinking of variations on how to do the FSMs with that paradigm: A component holding an integer value that's interpreted as the identifier of the state that the entity is in. So this state component is read by the state system, and that system routes the entity to be processed by the state ident...