Search found 3441 matches
- Sat Nov 04, 2023 7:32 am
- Forum: Support and Development
- Topic: Help with shaders!
- Replies: 2
- Views: 1528
Re: Help with shaders!
Look at the wiki, under love.image, you'll find ImageData; You should use that to manipulate pixels, then you can create an Image out of it once, and every time you modify the imagedata, you'll replace the pixels of the Image with the new data with the aptly named replacePixels method; this is proba...
- Tue Oct 31, 2023 7:18 pm
- Forum: Games and Creations
- Topic: I published my first game with Love2d - Fire at Will (with source code)
- Replies: 11
- Views: 9848
Re: My first game with Love2d: Fire at Will
That cs50 harvard course is bad, considering as far as i know, it has not been kept up to date with the current löve version, but even then, it teaches quite a few bad practices. As for why you're uploading a "game" on a website seemingly more catered for code snippets and stuff for websit...
- Tue Oct 31, 2023 7:12 pm
- Forum: Support and Development
- Topic: love.graphics.newImage() returns userdata instead of Image
- Replies: 2
- Views: 1540
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: 21825
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: 13178
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: 6178
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: 4770
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: 6740
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: 6260
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: 4038
Re: Is Tlfres defunct?
Considering it's from before 2017, TLfres should be considered defunct.