Search found 515 matches
- Mon Sep 18, 2023 6:54 pm
- Forum: Support and Development
- Topic: Need help understanding bump.lua and also why my bullets act this way
- Replies: 3
- Views: 933
Re: Need help understanding bump.lua and also why my bullets act this way
I believe the issue stems from the following: for i, bulletToRemove in ipairs(bulletsToRemove) do world:remove(bulletToRemove) table.remove(activeBullets, bulletToRemove[i]) -- this line here end I'm reasonably sure bulletToRemove[ i ] will just evaluate to nil in this context, which means that tabl...
- Thu Sep 14, 2023 3:59 pm
- Forum: Support and Development
- Topic: REQUESTING HELP
- Replies: 1
- Views: 352
Re: REQUESTING HELP
Welcome to the forums. The issue is here: for i = 0, totalStars, 1 do stars [1] = { -- the "1" here is the problem r = love.math.random(0,255) / 255, g = love.math.random(0,255) / 255, b = love.math.random(0,255) / 255, a = love.math.random(0,255) / 255, x = love.math.random(0, love.graphi...
- Sat Aug 26, 2023 2:25 pm
- Forum: Support and Development
- Topic: Having trouble with bump when different objects are on the screen
- Replies: 2
- Views: 531
Re: Having trouble with bump when different objects are on the screen
You are experiencing this behavior because you are using the world:check function, as opposed to the world:move function. -- change this... local actualX, actualY, cols, len = world:check(player, futureX, futureY) -- to this local actualX, actualY, cols, len = world:move(player, futureX, futureY) As...
- 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: 601
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: 2427
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: 455
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: 931
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: 1410
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: 1604
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: 697
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 ...