Search found 512 matches
- Tue Aug 22, 2023 4:24 pm
- Forum: Support and Development
- Topic: I'm having trouble understanding filtering collisions in bump.lua
- Replies: 2
- Views: 599
Re: I'm having trouble understanding filtering collisions in bump.lua
All the filters boil down to is that for each collider that you want to update, you provide a function. This function takes the currently updating collider, and the object it is colliding with as arguments. You can then resolve the collision based on the different objects' attributes or behavior (is...
- Sun Aug 20, 2023 2:08 pm
- Forum: Support and Development
- Topic: Get system language locale?
- Replies: 11
- Views: 2415
Re: Get system language locale?
A decent alternative is also to just ask users their preferred language when they launch your project, at least the first time. That leaves less room for ambiguity. Of course, this assumes you have localizations available for a given set of languages.
- Tue Jul 11, 2023 4:36 am
- Forum: Support and Development
- Topic: Takes a long time to open
- Replies: 1
- Views: 452
Re: Takes a long time to open
Have you tried debugging how long it takes to open love2d (with an empty project or otherwise) outside VSCode? I have no experience with using that particular extension, but I'd check if it's the whole PC that's affected, or just his VSCode setup.
- Sun Jul 02, 2023 3:09 am
- Forum: Support and Development
- Topic: How to Share Game in App Stores ??
- Replies: 1
- Views: 928
Re: How to Share Game in App Stores ??
You'll need to register an account with Apple and Google, both of which (I believe) requiring a fee before you can submit to their respective stores. After that's done, you can follow the steps on the wiki . For Android there might be a more ready-made solution that I might not be aware of, since I ...
- Sun Jul 02, 2023 12:03 am
- Forum: Support and Development
- Topic: Whats Love 2d exactly ?
- Replies: 3
- Views: 1401
Re: Whats Love 2d exactly ?
Love2d is a framework (or engine), that wraps up libraries like SDL, OpenAL, Box2d, and bunch of others into one package. The purpose of this is to make your life easier, in that it essentially provides a box of tools for you to use - rather than asking you to implement everything yourself (graphics...
- Wed Jun 28, 2023 4:36 am
- Forum: Support and Development
- Topic: problem with UP key
- Replies: 12
- Views: 1594
Re: problem with UP key
To add to the previous answers, there really isn't much you can do to solve this. At worst, you may need to get a different keyboard, preferably one with some implementation of n-key rollover which helps with keyboard ghosting issues. Cheap USB keyboards usually don't have this feature, since they m...
- Mon Jun 26, 2023 5:28 pm
- Forum: General
- Topic: How to get the size of the image knowing the scale given to it when drawing
- Replies: 4
- Views: 682
Re: How to get the size of the image knowing the scale given to it when drawing
If you know the scaling factor used to scale up the images while drawing, then you just divide the dimensions by the scaling factor, yeah. Of course, that assumes that you know the resulting drawn dimensions of the image. This is because getDimensions returns the dimensions of the texture, it won't ...
- Mon Jun 26, 2023 5:07 pm
- Forum: General
- Topic: How to get the size of the image knowing the scale given to it when drawing
- Replies: 4
- Views: 682
Re: How to get the size of the image knowing the scale given to it when drawing
If you have an image, you can get its dimensions with getDimensions. Multiply these by your scaling factor.
- Sun Jun 25, 2023 10:25 pm
- Forum: Support and Development
- Topic: Timer as Integer ?
- Replies: 9
- Views: 1157
Re: Timer as Integer ?
I believe you need to post your code if you want further help. Particularly that post about your timer being a variable and not a number, which shouldn't be an issue. Essentially, you'd keep your timer variable as-is, but when you display it on-screen, you'd apply math.floor (or other rounding mecha...
- Wed May 31, 2023 11:44 am
- Forum: Support and Development
- Topic: Iteration order
- Replies: 18
- Views: 3743
Re: Iteration order
It doesn't. Since the behavior is not codified in any official reference or specification as far as I'm aware, that behavior may be subject to changes between versions of lua/luajit. Can think of it like undefined behavior, that may work for you in the moment, but not necessarily in different enviro...