Search found 501 matches

by dusoft
Sat Dec 23, 2023 2:02 pm
Forum: Support and Development
Topic: Experiancing camera shake using hump.lua
Replies: 4
Views: 4400

Re: Experiancing camera shake using hump.lua

Hello,

I am using this camera library that has a shake support:
https://github.com/a327ex/STALKER-X#shake
by dusoft
Fri Dec 15, 2023 10:49 pm
Forum: Support and Development
Topic: Black screen
Replies: 11
Views: 37995

Re: Black screen

just setting a text color to something very close to black. Not really sure what you mean here, (1,1,1) is pure white, and it effects most draw instructions, not just text. Ah yes, sorry, I always think in 0-255 interval of CSS colors. It does not matter after all, you just set the color and don't ...
by dusoft
Fri Dec 15, 2023 4:15 pm
Forum: Support and Development
Topic: permission denied error
Replies: 2
Views: 10228

Re: permission denied error

It does not seem to be related to love, but rather something on your system that messes permissions up.
by dusoft
Fri Dec 15, 2023 4:15 pm
Forum: Support and Development
Topic: Black screen
Replies: 11
Views: 37995

Re: Black screen

Well, you are literally not drawing anything, just setting a text color to something very close to black. Try with more code including examples and tutorials and then come back to forum, if the issue persists.
by dusoft
Thu Dec 14, 2023 7:54 pm
Forum: Support and Development
Topic: Displaying (or Drawing) Coordinates
Replies: 3
Views: 18138

Re: Displaying (or Drawing) Coordinates

Just to clarify: you need to use delta time to match CPU cycles of your computer. Otherwise you would be just easily overflowing both the coordinates (i.e. maxing out in a matter of microseconds). Using delta time takes care of different CPU speeds of different computers, so your game will behave (s...
by dusoft
Sat Dec 09, 2023 1:11 pm
Forum: General
Topic: confusing polygon problem
Replies: 2
Views: 4086

Re: confusing polygon problem

Also I have found this old thread that provides good explanations:
viewtopic.php?t=93913
by dusoft
Sat Dec 09, 2023 1:06 pm
Forum: General
Topic: confusing polygon problem
Replies: 2
Views: 4086

Re: confusing polygon problem

Do you need to clip (simplify) polygons?

If so, check these:
https://github.com/spoonless/luapoly
https://github.com/Ark223/ClipperLua

Or triangulation:
https://github.com/Yonaba/delaunay
by dusoft
Sat Dec 09, 2023 1:03 pm
Forum: Support and Development
Topic: Converting string to array [Sloved]
Replies: 4
Views: 10818

Re: Converting string to array

BrotSagtMist wrote: Fri Dec 08, 2023 4:14 pm You probably want to use utf8.charpattern instead "." to have it catch the ö in löve.
Good point.
by dusoft
Fri Dec 08, 2023 4:09 pm
Forum: Support and Development
Topic: Converting string to array [Sloved]
Replies: 4
Views: 10818

Re: Converting string to array

Iterate over the length of string and extract substring for each position that you insert into a table. Or: str:gsub(".",function(c) table.insert(t,c) end) (https://stackoverflow.com/questions/20423406/lua-convert-string-to-table) BTW, Stackoverflow is better place to search for generic lu...
by dusoft
Mon Dec 04, 2023 8:29 pm
Forum: Support and Development
Topic: [SOLVED] Scaling and camera issues :'D [im probably very stoopid]
Replies: 5
Views: 19789

Re: Scaling and camera issues :'D [im probably very stoopid]

Nycleo wrote: Mon Dec 04, 2023 7:22 pm
darkfrei wrote: Mon Dec 04, 2023 6:15 pm I am making translate and than scale, not in other order.
What do you mean?
He probably means:
Scale and translate are not commutative operations, therefore, calling them in different orders will change the outcome.
See: https://love2d.org/wiki/love.graphics.scale