Search found 249 matches

by RNavega
Sun Feb 18, 2024 9:03 pm
Forum: Support and Development
Topic: Need Beginners Help with Nil Value error
Replies: 1
Views: 452

Re: Need Beginners Help with Nil Value error

Hi. Read the error message, it's worth gold: main.lua:9: attempt to index field 'spriteSheet' (a nil value) It says the error is on your "main.lua" script, on line #9, which happens to be this: player.grid = anim8.newGrid( 12, 18, player.spriteSheet:getWidth(), player.spriteSheet:getHeight...
by RNavega
Sun Feb 18, 2024 8:58 pm
Forum: Support and Development
Topic: Finding the visual center of a polygon
Replies: 3
Views: 525

Re: Finding the visual center of a polygon

Your image doesn't look like a polygon, but like something painted / raster data. Is your input shape polygonal, or is it a bitmap, or something else? Is it supposed to be animated? Is the center always in the same position, or do you need to calculate the nearest center towards some arbitrary point...
by RNavega
Sat Feb 17, 2024 7:24 am
Forum: Support and Development
Topic: Spawning Endless Object With Conditions
Replies: 2
Views: 531

Re: Spawning Endless Object With Conditions

And a really quick question: If off screen objects are using memory like "setting a pipes X coordinate to -100" how could you actually destroy them once they are no longer used. The Lua language standard defines a memory managed environment, and the LuaJIT interpreter used by Löve follows...
by RNavega
Wed Feb 14, 2024 8:26 am
Forum: Support and Development
Topic: Http requests
Replies: 7
Views: 977

Re: Http requests

Was there a reason why you didn't post the actual code that causes the error?
by RNavega
Sun Feb 11, 2024 6:19 am
Forum: Support and Development
Topic: Random terrain collision
Replies: 5
Views: 865

Re: Random terrain collision

There was an article on GameDev.net many years ago, something like "So you want to be a game developer?", where it'd posit that the best way to learn how to program games, is to make clones of classic games of progressing complexity. It suggested starting with Pong, then Arkanoid, then Tet...
by RNavega
Sat Feb 10, 2024 3:04 am
Forum: Support and Development
Topic: Http requests
Replies: 7
Views: 977

Re: Http requests

There's a module in Löve 12: https://love2d.org/wiki/lua-https (It's a standalone HTTP and HTTPS library made by the Löve team themselves by the way: https://github.com/love2d/lua-https) I couldn't find Löve 12 artefacts (binaries) to test, so you'd have to build from source. Ah, here it is, you go ...
by RNavega
Thu Feb 08, 2024 1:10 pm
Forum: General
Topic: How do you code and deploy DLC's?
Replies: 10
Views: 2815

Re: How do you code and deploy DLC's?

Having a two itch projects - one with a paywall, means I'm maintaining two sets of code. Just to clarify: the game engine (the executable with the embedded .love) would be the same in both projects. But the game media assets, including your scene/level files, those would be different and reside out...
by RNavega
Thu Feb 08, 2024 12:53 am
Forum: General
Topic: How do you code and deploy DLC's?
Replies: 10
Views: 2815

Re: How do you code and deploy DLC's?

I like thestarknight's drag and drop idea, that's very clean. But I'd probably just have the full game as the paywalled version. So there are two itch.io projects: A) game engine + shareware assets B) game engine + shareware + commercial assets. They're both self-sufficient. You can totally unpack t...
by RNavega
Tue Feb 06, 2024 4:28 am
Forum: Libraries and Tools
Topic: [LIBRARY] srt.lua A simple srt caption parser
Replies: 8
Views: 80348

Re: [LIBRARY] srt.lua A simple srt caption parser

That's a cool IDE, it shows a stack / debug info, very useful. I code in Notepad++ like a peasant, it's just the text and that's it. Now parsed nodes work but the output is still nil, also i did a conscious decision of when there's no subtitle present at the time return an empty string witch ensures...
by RNavega
Mon Feb 05, 2024 5:19 am
Forum: Libraries and Tools
Topic: [LIBRARY] srt.lua A simple srt caption parser
Replies: 8
Views: 80348

Re: [LIBRARY] srt.lua A simple srt caption parser

I know my O() function is garbage, but since generally even a 3hr file could get parsed in so little i took the performance hit. Since your code works, I don't consider it garbage. But it would be much faster using caching -- not in a noticeable way though, probably microseconds faster. Once i test...