Search found 2778 matches

by zorg
Wed Feb 12, 2020 8:34 pm
Forum: Support and Development
Topic: [Proposal] Better multimedia formats.
Replies: 34
Views: 4468

Re: [Proposal] Better multimedia formats.

JPEG has not been removed from love and I have no intention of doing so The wiki is not up-to-date ? https://love2d.org/wiki/ImageFormat That might have been an accidental deletion due to these changelog messages on the 0.10.0 wiki page: - Removed image loading support for all (non-compressed textu...
by zorg
Wed Feb 12, 2020 7:28 am
Forum: Support and Development
Topic: [Proposal] Better multimedia formats.
Replies: 34
Views: 4468

Re: [Proposal] Better multimedia formats.

Of course you can use every frame as a decompressed one on texture sheets but in most cases, that's going to use a lot more resources. Do note that the formats are only used for -storage- purposes; internally they'd be converted WebP animations could be implemented for Array textures loading (new A...
by zorg
Tue Feb 11, 2020 2:40 pm
Forum: Support and Development
Topic: How do I do simple http requests with love/lua?
Replies: 1
Views: 967

Re: How do I do simple http requests with love/lua?

Yeah, this seems more of a lovejs issue than löve, especially since you yourself said that it worked in löve proper.
by zorg
Tue Feb 11, 2020 2:38 pm
Forum: Support and Development
Topic: [Proposal] Better multimedia formats.
Replies: 34
Views: 4468

Re: [Proposal] Better multimedia formats.

Do note that the formats are only used for -storage- purposes; internally they'd be converted (or would need to be convertable to*): - SoundData (raw samplepoint representation) - Decoder (needing to wrap opus lib, would need to be able to realtime decode with some sensible buffer sizes... and would...
by zorg
Tue Feb 11, 2020 2:26 pm
Forum: Support and Development
Topic: Fixture:GetBoundingBox gives irrational results [SOLVED]
Replies: 2
Views: 917

Re: Fixture:GetBoundingBox gives irrational results

Or if you want geometric mean instead of the arithmetic one (as shown above), then you can do x = math.sqrt(a*b) as well... as long as your coordinates aren't signed, or in other words, less than (or equal to) zero; the arithmetic one's probably what gets used most though and doesn't have this issue.
by zorg
Tue Feb 11, 2020 2:22 pm
Forum: General
Topic: What code editor do you use ?
Replies: 161
Views: 59253

Re: What code editor do you use ?

I really don't understand, why do you people use primitive text editors instead of full featured IDE which can show you autocomplete not only from love-classes, but also from your own classes. Can your Notepad++, Gedit or Geany do the same? No, but here's an interesting fact: I, for one, don't care...
by zorg
Mon Feb 03, 2020 12:01 pm
Forum: Support and Development
Topic: Can no longer take screenshots with last love2d version
Replies: 3
Views: 1074

Re: Can no longer take screenshots with last love2d version

While it's true that the captureScreenshot method doesn't return anything directly, you can also give it a Channel or a function as well; the former's only interesting if you work with threads, the latter can be more useful since captureScreenshot will call that supplied function with an ImageData o...
by zorg
Sun Feb 02, 2020 8:26 am
Forum: Support and Development
Topic: "Not enough space" error when printing a string
Replies: 12
Views: 2388

Re: "Not enough space" error when printing a string

I insist that you head over to Wikipedia and study carefully the article about UTF-8 encoding. Weird that other function does work which inserts a string in given position works which is almost the same. I'm pretty sure inserting to an index that would be between two bytes of a multibyte character ...
by zorg
Sat Feb 01, 2020 6:44 pm
Forum: Support and Development
Topic: "Not enough space" error when printing a string
Replies: 12
Views: 2388

Re: "Not enough space" error when printing a string

Guys why doesn't this work? Checking the reference manual, i didn't see any utf8.sub function there. ( http://www.lua.org/manual/5.3/manual.html#6.5 - löve implements this itself fully as its own utf-8 lib) Also, shouldn't step be math.floor-ed? at some point? not sure if it's a good idea to pass i...