Search found 164 matches

by marclurr
Fri Mar 28, 2025 7:26 pm
Forum: Support and Development
Topic: Multiple audio.newSource of same fileI
Replies: 4
Views: 529

Re: Multiple audio.newSource of same fileI

I've also used the clone method in the past. The clones will get garbage collected as long as there are no long lived references to them and they reference the data in the original source so data duplication is fairly low. You can also release the clones manually but to be fair I think this isn't th...
by marclurr
Sun Mar 23, 2025 8:29 pm
Forum: General
Topic: ECS -- is it ok to have a method/function as a component ?
Replies: 11
Views: 1893

Re: ECS -- is it ok to have a method/function as a component ?

I had a go at making a platformer using an ECS a few years ago. I found there to be very few non-trivial ECS examples at the time so I was mostly making it up as I went, but I it was very fiddly to make a platform game this way for me. I think in the end I had a "script" component that was...
by marclurr
Sun Mar 16, 2025 1:41 pm
Forum: Support and Development
Topic: Collisions just don't want to work
Replies: 5
Views: 1049

Re: Collisions just don't want to work

Would be happy to do a bit of debugging (and sure others would too) but would ideally need the full .love attached so we can understand the flow better. There's just not enough of your program there to let us give any useful advice
by marclurr
Sun Mar 16, 2025 4:23 am
Forum: Support and Development
Topic: Collisions just don't want to work
Replies: 5
Views: 1049

Re: Collisions just don't want to work

There's not really enough to go off of here. If you need arbitrary rectangle collision resolution I really would recommend bump, but if you're determined to do it all yourself this is a good resource https://m.youtube.com/watch?v=8JJ-4JgR7 ... N0YW5nbGVz
by marclurr
Fri Mar 14, 2025 11:31 am
Forum: Support and Development
Topic: Text Effects
Replies: 4
Views: 863

Re: Text Effects

You could always unzip the exe and see how they did it.
by marclurr
Wed Jan 08, 2025 7:09 am
Forum: Support and Development
Topic: saving and loading on a macbook
Replies: 1
Views: 664

Re: saving and loading on a macbook

Are you sure you're looking for the files in the correct place? According to the wik (https://love2d.org/wiki/love.filesystem) the location for Mac is /Users/user/Library/Application Support/LOVE
by marclurr
Wed Dec 25, 2024 7:01 am
Forum: Support and Development
Topic: Catch those noodles Game - glitches with spawn intervals
Replies: 1
Views: 562

Re: Catch those noodles Game - glitches with spawn intervals

You forgot to add the file but it sounds like you're probably drawing the background on top of your enemies so it's covering them. The order that things are drawn is important. Things drawn first will be covered by things drawn later, so draw your background first, then the enemies.
by marclurr
Thu Dec 19, 2024 7:11 am
Forum: Support and Development
Topic: Issues with 3D graphics and Artifacting in love2d
Replies: 4
Views: 1209

Re: Issues with 3D graphics and Artifacting in love2d

I wasn't able to see any artifacts that looked like sparks but when i set the line mode to rough it sometimes looked like line segments were extending too far. I changed the code to make three calls to love.graphics.line and this didn't produce the problem. There may be some quirks with the polygon ...
by marclurr
Thu Dec 19, 2024 12:04 am
Forum: Support and Development
Topic: Issues with 3D graphics and Artifacting in love2d
Replies: 4
Views: 1209

Re: Issues with 3D graphics and Artifacting in love2d

This is the main problem. Look closely, you're not squaring the z component correctly. l = math.sqrt(normal.x * normal.x + normal.y * normal.y + normal.x * normal.z) But you're also calculating the cross product slightly wrong, though you've compensated by negating the incorrect value so it actually...