Search found 107 matches

by marclurr
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?
by marclurr
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...
by marclurr
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...
by marclurr
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.
by marclurr
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...
by marclurr
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 ...
by marclurr
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...
by marclurr
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.
by marclurr
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.
Screenshot_20230915-202124.png
Screenshot_20230915-202124.png (46.58 KiB) Viewed 6737 times
by marclurr
Wed Sep 13, 2023 7:47 pm
Forum: Support and Development
Topic: [Solved] Detect love.js
Replies: 2
Views: 1011

Re: Detect love.js

slime wrote: Wed Sep 13, 2023 4:47 pm love.system.getOS will return "Web", I think.
Yep you're exactly right. Thanks for that :)