Search found 512 matches
- Tue Apr 05, 2022 8:57 am
- Forum: Support and Development
- Topic: How do I change the music playing?
- Replies: 2
- Views: 1877
Re: How do I change the music playing?
Additionally, if you want a smoother transition between the menu and gameplay tracks by fading them in/out over time, you can either use love.audio.setVolume (to set the master volume), or individually set the volume for each track with Source:setVolume.
- Thu Mar 31, 2022 8:25 pm
- Forum: Support and Development
- Topic: Not letting box2d physics resolve
- Replies: 3
- Views: 2346
Re: Not letting box2d physics resolve
I think bump.lua might suit your needs better.
- Tue Mar 29, 2022 3:56 pm
- Forum: Support and Development
- Topic: Embed SWF file into Love2D game
- Replies: 2
- Views: 2461
Re: Embed SWF file into Love2D game
Not really, no. At least not in any capacity that it would be worth the effort. You'd have to somehow embed flash player to play inside the LÖVE window, which would require non-trivial amount of work on the LÖVE source code. You could write a parser to interpret the data inside the SWF, but even tha...
- Wed Mar 23, 2022 5:24 pm
- Forum: General
- Topic: LÖVE 11.4 - out now!
- Replies: 51
- Views: 227274
Re: LÖVE 11.4 - out now!
Those flags are optional optimization flags you can pass to adjust the size of machine code areas, total machine code in areas, as well as the number of traces in the luajit cache, respectively. Basically, given large enough code base, you can use those flags to allocate extra memory to luajit, whic...
- Tue Mar 22, 2022 2:23 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 9072
Re: File not found, but it's exist
Can it? At a quick glance, to me the wiki only says that love.graphics.newVideo can take a filename or a VideoStream object as its arguments, with an optional settings table . Is there some part I'm missing, or is newVideo accepting a File object detailed on some other page? Or is this info just not...
- Mon Mar 21, 2022 7:03 pm
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 9072
Re: File not found, but it's exist
As ReFreezed said, love.graphics.newVideo still uses the relative paths that LÖVE's file system uses by default; passing absolute paths doesn't work. However, reading the wiki, love.graphics.newVideo can also take in a VideoStream object, which can be constructed from a File object. So using nativef...
- Mon Mar 21, 2022 11:57 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 9072
Re: File not found, but it's exist
I'm afraid you'll have to post your code.
- Mon Mar 21, 2022 11:55 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 9072
Re: File not found, but it's exist
Can you describe your use case a bit more? Would love.filedropped for instance work if you need to implement a general purpose video player, or is there some other reason to loading files outside the fused executable? You also don't really say what's wrong with nativefs, so hard to help troubleshoot...
- Fri Mar 18, 2022 2:32 pm
- Forum: General
- Topic: LÖVE 11.4 - out now!
- Replies: 51
- Views: 227274
Re: LÖVE 11.4 - out now!
I, too, ran into some various slowdowns and frame jitters. Not outright crashes, but noticeable lag spikes in places where there was none before. Disabling JIT is the quick and easy method, but tinkering with some values I just wound up increasing the memtrace and maxmcode options: if pcall(require,...
- Mon Mar 14, 2022 9:36 pm
- Forum: Support and Development
- Topic: Help with string pattern matching
- Replies: 3
- Views: 2141
Re: Help with string pattern matching
This pattern seemed to handle all of the listed test cases in your post, if the intention is indeed to stop at "to". If you were to expand this, you could make a lookup table for words that are supposed to break the loop. Not tested for performance, since I wrote it in like few minutes. --...