Search found 3449 matches
- Tue Oct 31, 2023 7:12 pm
- Forum: Support and Development
- Topic: love.graphics.newImage() returns userdata instead of Image
- Replies: 2
- Views: 4245
Re: love.graphics.newImage() returns userdata instead of Image
A bit of a different explanation, lua's type function does not know of any types that aren't part of the language itself; any and all types löve gives you are of type userdata, so the type function is not the tool you want to use to check that. Object is the supertype of all löve types, as the wiki ...
- Sun Oct 29, 2023 12:19 pm
- Forum: Support and Development
- Topic: UTF-8 encoding error when erasing accent characters
- Replies: 5
- Views: 24761
Re: UTF-8 encoding error when erasing accent characters
Alternatively, there is a perfectly fine utf-8 library included with löve you can use, especially its own utf8.sub function.
The wiki even gives you this exact thing as an example: https://love2d.org/wiki/utf8
- Thu Oct 26, 2023 8:42 pm
- Forum: Libraries and Tools
- Topic: Help for LOVE2D e-book.
- Replies: 4
- Views: 18175
Re: Help for LOVE2D e-book.
Sheepolution, not sheepnation. Also, the "gaming algorithms" you listed aren't really tied to löve itself. Gravity is you looking up how physics can work, that you also mentioned; there are different physics libraries besides the included one that might be better depending on what kind of ...
- Thu Oct 19, 2023 6:26 am
- Forum: Support and Development
- Topic: USB Audio interface support?
- Replies: 4
- Views: 6590
Re: USB Audio interface support?
I believe that Löve 12.0 will have the ability to select the actual audio device for the game to use, so that might be a solution, regardless whether effects are used or not; that's not the issue if there's no sound *at all*. Alternatively, that device might work only in exclusive mode, and if anoth...
- Mon Oct 02, 2023 9:19 am
- Forum: Support and Development
- Topic: It seems like there is an issue with my Fourier transform.
- Replies: 1
- Views: 4937
Re: It seems like there is an issue with my Fourier transform.
First of all, your file's character encoding is not utf-8, but GB2312, which it shouldn't be; fix that and keep to it if you don't want random unexplainable errors. Second, love.sound.newSoundData can directly take a filename, you most definitely do not need to read in the data manually. Third, the ...
- Thu Sep 28, 2023 6:45 pm
- Forum: Support and Development
- Topic: isDown, keypressed or wasPressed?
- Replies: 9
- Views: 7271
Re: isDown, keypressed or wasPressed?
Also, there is no such thing as wasPressed.
- Sat Sep 23, 2023 4:41 am
- Forum: General
- Topic: I just accidentally found a literal zip bomb for the ram in love
- Replies: 3
- Views: 7678
Re: I just accidentally found a literal zip bomb for the ram in love
Technically, calling play on audio Sources while they are already playing should not do anything, so i'm really suprised if that would actually be the issue here and not something else you're also doing that you didn't share (e.g. calling :clone on one of the sources repeatedly; that *might* fill up...
- Wed Sep 06, 2023 3:42 pm
- Forum: Support and Development
- Topic: Is Tlfres defunct?
- Replies: 8
- Views: 4438
Re: Is Tlfres defunct?
Considering it's from before 2017, TLfres should be considered defunct.
- Tue Aug 29, 2023 11:07 am
- Forum: General
- Topic: Collision library that take rotation in to account
- Replies: 14
- Views: 6548
Re: Collision library that take rotation in to account
So, let's forget for now about any separate collision related bodies or shapes. You have one rectangular sprite for the cannon. It has some x and y coords that correspond to some point on itself; center / topleft, doesn't matter which. For movement, you calculate how much it needs to move, and in wh...
- Mon Aug 28, 2023 11:30 pm
- Forum: General
- Topic: Collision library that take rotation in to account
- Replies: 14
- Views: 6548
Re: Collision library that take rotation in to account
Thanks a lot. I'll look in to ConvexPolygonShapes then. That said, according to the docs, "Most shapes will be centered on the point (x,y)." To me, that says that the positioning is based on the centroid of the shapes, not their topleft that you expect for some reason. When I create the r...