Search found 509 matches
- Sun Jul 02, 2023 3:09 am
- Forum: Support and Development
- Topic: How to Share Game in App Stores ??
- Replies: 1
- Views: 915
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: 1218
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: 1549
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: 669
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: 669
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: 1126
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: 3239
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...
- Sun May 14, 2023 9:02 am
- Forum: General
- Topic: Is there a way to add a toolbar to the window?
- Replies: 2
- Views: 1167
Re: Is there a way to add a toolbar to the window?
I'm not sure there's any easy way to implement (presumably) Windows-style toolbars directly from löve and lua itself, without modidying löve C++ source code to add the needed hooks and functionalities. You could maybe call some of the Windows system functions via luajit's FFI (eq. CreateWindowEx ), ...
- Sat May 13, 2023 12:45 am
- Forum: Support and Development
- Topic: I finnally started using bump.lua for my collisions, however I still have problems understanding it
- Replies: 3
- Views: 967
Re: I finnally started using bump.lua for my collisions, however I still have problems understanding it
As it says, your "blocks" variable is undefined (nil value). If you try to treat an undefined variable like a table, then you're bound to get errors like that. You'll need to do something like this in your code to make it work (assuming you have defined "world" somewhere else in ...
- Fri May 12, 2023 10:17 pm
- Forum: Support and Development
- Topic: I finnally started using bump.lua for my collisions, however I still have problems understanding it
- Replies: 3
- Views: 967
Re: I finnally started using bump.lua for my collisions, however I still have problems understanding it
What's the error? Always make sure to attach an error log if you want help. The code you posted doesn't really tell us anything, assuming the variables "blocks" and "world" actually exist.