Search found 42 matches
- Wed Jul 10, 2024 5:26 am
- Forum: Support and Development
- Topic: fast async load all assets?
- Replies: 3
- Views: 1959
fast async load all assets?
how can i quickly load all 1,000 of my game's assets (images, sounds)? i'm using love-loader, so that it's not blocking the main thread. but this doesn't make it any faster. love-loader itself is loading files 1 by 1 in a very slow, synchronous loop. is it possible to send a request to the OS to loa...
- Thu Feb 23, 2017 3:20 am
- Forum: Support and Development
- Topic: returning table from love.thread
- Replies: 7
- Views: 11145
Re: returning table from love.thread
That's all very interesting, but also very confusing. If it's possible could someone put a simple example code for it? I tried for now just sending serialized table data back, but I'm sometimes getting a stackoverflow error in the thread when calling channel:push for an unknown reason. and other tim...
- Sun Feb 12, 2017 5:12 am
- Forum: Support and Development
- Topic: returning table from love.thread
- Replies: 7
- Views: 11145
returning table from love.thread
Do I have to serialize my table as some kind of string or whatever then unserialize it in my main thread? There's no way to pass a reference to a table in a thread back to the main process? Or pass a reference to a table into the thread for it to edit? The whole point of my thread is to generate a h...
- Tue Mar 01, 2016 11:13 am
- Forum: Support and Development
- Topic: Can threads use shaders?
- Replies: 8
- Views: 5948
Re: Can threads use shaders?
I'm going to throw a related question in here.
Is it possible to just load a shader in another thread? I assume no.
It's annoying that making all my lg.newShader() and lg.newCanvas() freezes my game for a bit, and I can't put it into my load thread
Is it possible to just load a shader in another thread? I assume no.
It's annoying that making all my lg.newShader() and lg.newCanvas() freezes my game for a bit, and I can't put it into my load thread
- Sun Feb 28, 2016 1:52 am
- Forum: Support and Development
- Topic: Share a Shader!
- Replies: 328
- Views: 612836
Re: Share a Shader!
This may be the wrong thread because I don't know if this shader actually works. I'm trying to convert a CRT shader found on Shadertoy to LÖVE. It runs without errors, but I get a black screen. I don't know if this is because the shader isn't working or because my system doesn't support it. I'm not...
- Fri Feb 26, 2016 10:04 am
- Forum: Libraries and Tools
- Topic: [library] LoveLive - Real time value tweaking (v0.2.0)
- Replies: 7
- Views: 5739
Re: [library] LoveLive - Real time value tweaking (v0.2.0)
It's really good. The simple fact that its console stacks duplicate messages allows me to quickly/lazily debug things. https://love2d.org/imgmirrur/V3aUtNm.png The love console isn't so useful with all that spam. Also it'll find all the global variables you leak by forgetting to use local. Real-time...
- Thu Feb 25, 2016 3:13 am
- Forum: Support and Development
- Topic: using if statements with mousepressed doesnt work
- Replies: 3
- Views: 2904
Re: using if statements with mousepressed doesnt work
cooooooooode
paste code and or a .love file
paste code and or a .love file
- Tue Feb 23, 2016 11:19 am
- Forum: Support and Development
- Topic: Having issue with how bullets are generating when my player rotates
- Replies: 3
- Views: 3358
Re: Having issue with how bullets are generating when my player rotates
im not too sure how to go about it. Here's the math xoffset = 50 yoffset = 10 bulletx = player.x + math.cos(player.angle)*xoffset + math.cos(player.angle+math.pi/2)*yoffset bullety = player.y + math.sin(player.angle)*xoffset + math.sin(player.angle+math.pi/2)*yoffset Understanding math is pretty im...
- Sun Feb 21, 2016 4:04 am
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 440301
Re: "Questions that don't deserve their own thread" thread
I'm trying to make a very basic hello world with bump by following kikito's guide, but the values actualX and actualY, that I would use for drawing a rectangle, as I understand, are nil and therefore I cannot draw with them, the error says "bad argument #2 to 'rectangle' (number expected got n...
- Sat Feb 20, 2016 6:51 am
- Forum: Games and Creations
- Topic: Move or Die | Löve game on Steam!
- Replies: 38
- Views: 36501
Re: Move or Die | Löve game on Steam!
How do you do Steam integration? I work on Pocket Rumble (another Löve game now on Steam!) We asked the same question to one of the Move or Die developers (sorry I forget who, I wasn't the one talking with him) Anyway, he was super helpful, thanks a ton! How move or die did it: extended love, wrote...