Search found 107 matches
- Sun Dec 03, 2023 7:37 am
- Forum: Support and Development
- Topic: Is there a way in Love2D to determine which side of a window is being resized?
- Replies: 4
- Views: 12071
Re: Is there a way in Love2D to determine which side of a window is being resized?
I haven't checked but I would imagine the window position would also change when it's resized from the left. Maybe you can use that to help your logic?
- Fri Dec 01, 2023 5:16 pm
- Forum: General
- Topic: Collision not being registered
- Replies: 10
- Views: 31405
Re: Collision not being registered
Anyway, to sum up, moving colliders by collider:setPosition() seems like a poor practice and should not be used unless truly intended, right? Also, it feels like too much, but how do I check the Box2D internals to monitor things like this issue? From what I can tell, you're right. Best to let the p...
- Fri Dec 01, 2023 2:46 pm
- Forum: General
- Topic: Collision not being registered
- Replies: 10
- Views: 31405
Re: Collision not being registered
I think the problem is the call to setPosition. This seems to cause some weirdness in the Box2D internals. I'm not sure exactly why it sometimes works and other times doesn't but I suspect it's not meant to be used to move things into a colliding state. I remove the setPosition and setAngle calls fr...
- Fri Dec 01, 2023 10:21 am
- Forum: General
- Topic: Collision not being registered
- Replies: 10
- Views: 31405
Re: Collision not being registered
I've had a mess around with Windfield and while I managed get a similar behaviour as you describe, I believe it was result of using the API incorrectly. It would be best if you could share your .love file so we can properly see how your code works altogether.
- Sun Oct 22, 2023 4:52 pm
- Forum: General
- Topic: Code Doodles!
- Replies: 197
- Views: 281224
Re: Code Doodles!
While I was on holiday last week I had a few ideas for games that would need circle vs arbitrarily rotated rectangle collision resolution. I came up with a solution that I was itching to have a go at implementing. It works nicely, and I thought it was a clever and novel idea until I looked around on...
- Fri Sep 22, 2023 8:09 am
- Forum: Support and Development
- Topic: how to turn a game into an apk
- Replies: 4
- Views: 3636
Re: how to turn a game into an apk
That looks like some Java or Gradle version mismatching to me. Double check the versions of the tools you have are all compatible with each other. Edit: You could try deleting the Gradle cache (directory under .gradle) and rerunning it. If you've had a few different versions of the tools running at ...
- Fri Sep 22, 2023 8:00 am
- Forum: Support and Development
- Topic: Confused on how to access the data field of STI tiled file
- Replies: 1
- Views: 1008
Re: Confused on how to access the data field of STI tiled file
I've not used STI before but had a quick gander at the source code and it's building a fairly complex representation of the map under the hood. You're right that layer.data is a 2D array, but the value stored there is a table with a load of metadata about the tile there. From what I can gather the f...
- Wed Sep 20, 2023 12:29 pm
- Forum: Games and Creations
- Topic: Alchemist, a "traditional" roguelike
- Replies: 12
- Views: 23019
Re: Alchemist, a "traditional" roguelike
A bit late to the party but this is an impressive achievement. I'd be interested to hear your thoughts on maintaining such a large project in Lua.
- Fri Sep 15, 2023 7:23 pm
- Forum: General
- Topic: Mobile phone display resolution
- Replies: 5
- Views: 6767
Re: Mobile phone display resolution
Can't quite see the top line, think it says 411.
- Wed Sep 13, 2023 7:47 pm
- Forum: Support and Development
- Topic: [Solved] Detect love.js
- Replies: 2
- Views: 1011
Re: Detect love.js
Yep you're exactly right. Thanks for that