Eroica wrote:If I understand you correctly, a system like those should fire an "ACTION" based on which key was pressed, and update the player's state in its methods.
Yup.
Eroica wrote: Which brings me to my other point: Is there any inconvenience in having "key-press logic" both in love.update() and love.keypressed()?
I don't think there's any big inconvenience, as long as you remember you've got key press logic in both places. The theoretical inconvenience is to have a hard time debugging key initiated functionality if there are two entry points to the logic. But it depends a lot on the whats, hows, how muchs and etc. In practice you might not hit any issues at all.
Eroica wrote:I hope I don't sound too confusing with this, perhaps I'm still lacking the "a-ha!" moment before I see all of this clearly.
It's perfectly fine, these are pretty advanced software engineering concepts and it takes a while to wrap one's head around them.
this made me suffer for many hours, trying to find a reason why lldebugger did not work.
The simple reason was overwriting the lua debug-library with this simple line.
Better call the variable something else...
this made me suffer for many hours, trying to find a reason why lldebugger did not work.
The simple reason was overwriting the lua debug-library with this simple line.
Better call the variable something else...
Despite necroing the thread, one thing: casing matters; the above code block is probably fine since lua's debug library is called "debug" and not "DEBUG".
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
this made me suffer for many hours, trying to find a reason why lldebugger did not work.
The simple reason was overwriting the lua debug-library with this simple line.
Better call the variable something else...
Despite necroing the thread, one thing: casing matters; the above code block is probably fine since lua's debug library is called "debug" and not "DEBUG".