Search found 509 matches

by dusoft
Tue Mar 12, 2024 4:33 pm
Forum: General
Topic: Gradients (gradient as fill)
Replies: 10
Views: 1976

Re: Gradients (gradient as fill)

Thanks for your suggestions, I will be staying with scaled up overlapping polygons for now.
by dusoft
Tue Mar 12, 2024 9:39 am
Forum: General
Topic: Gradients (gradient as fill)
Replies: 10
Views: 1976

Re: Gradients (gradient as fill)

Meshes seem to be unnecessary complicated for my use - I am neither using images, nor canvas. I am working with 2D, not 3D. I am drawing polygons directly and using physics functions. I can simulate gradients via repeated drawing of multiplied polygons, but I will have to benchmark performance here ...
by dusoft
Tue Mar 12, 2024 5:37 am
Forum: General
Topic: Gradients (gradient as fill)
Replies: 10
Views: 1976

Gradients (gradient as fill)

Hi, I have searched forums extensively as well as Stack Overflow to find out how to approach gradient drawing. I mostly need it for polygons at the moment, but I am sure it would be useful to have it for any shape. I know there was a discussion regarding this and the best method so far is to use a 1...
by dusoft
Sun Feb 18, 2024 7:30 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

Some other languages such as R have libraries supporting this. AFAIK there is nothing for LOVE / Lua, so in the meantime you can read on how such algorithm works and you can potentially program it yourself: https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc...
by dusoft
Sun Feb 18, 2024 11:04 am
Forum: General
Topic: Where to give credit to 3rd party libs?
Replies: 4
Views: 1110

Re: Where to give credit to 3rd party libs?

Documentation (usually required by licenses anyway)
Credits (scrolling screen etc.)
Splash - maybe the most important ones and allow skipping (or show only on first launch), otherwise it might be annoying to your users
by dusoft
Mon Feb 12, 2024 5:29 pm
Forum: General
Topic: Code Doodles!
Replies: 196
Views: 263930

Re: Code Doodles!

Good job! The maze creator works well and is something to look at.
by dusoft
Sat Feb 10, 2024 10:08 am
Forum: Support and Development
Topic: Random terrain collision
Replies: 5
Views: 862

Re: Random terrain collision

Well top-down game with tiles can still use polygons for other stuff. But fair enough. If it is just blocks than basic AABB collision checking will work.
by dusoft
Fri Feb 09, 2024 7:44 pm
Forum: Support and Development
Topic: Random terrain collision
Replies: 5
Views: 862

Re: Random terrain collision

I second what Azzla said. Love physic module is recommended or use some helpers like Bump or HC, if you must.
by dusoft
Fri Feb 09, 2024 5:28 pm
Forum: Support and Development
Topic: Http requests
Replies: 7
Views: 977

Re: Http requests

A bit of searching:
https://stackoverflow.com/questions/375 ... 301-or-302

It seems that library is highly outdated.

Use Lua CURL or something similar.