Also, have you tried PNG optimizers?
apt-cache search png optimize
Search found 3553 matches
- Wed May 01, 2024 7:48 am
- Forum: General
- Topic: Image format size pickle
- Replies: 13
- Views: 450
- Tue Apr 30, 2024 7:17 pm
- Forum: Games and Creations
- Topic: Abtastorgan - a qwop speed puzzler
- Replies: 3
- Views: 164
Re: Abtastorgan - a qwop speed puzzler
Great game! Level 16 is really evil.
I miss being able to know what the time limit was when solving a level in the first try, just to know how close I was to it.
I miss being able to know what the time limit was when solving a level in the first try, just to know how close I was to it.
- Sat Apr 27, 2024 2:03 pm
- Forum: General
- Topic: Code Doodles!
- Replies: 197
- Views: 274830
Re: Code Doodles!
When I saw this simulation: https://myphysicslab.com/engine2D/pendulum-clock-en.html I couldn't resist giving it a try with love and box2D. Here's the result: local lg = love.graphics local lp = love.physics local ballRadius = 40 local wheelRadius = 120 local fangDistance = 42 local fangHeight = 27 ...
- Wed Apr 24, 2024 5:07 am
- Forum: General
- Topic: Sprite speed
- Replies: 4
- Views: 376
Re: Sprite speed
Hello, welcome to the forums. I may be wrong, but I think what's happening is that you have a single animation (animations.enemy) for all the enemies, and you update it once per enemy, therefore the more enemies you have, the more times in the same frame the animation will be updated. If you're OK w...
- Sat Apr 20, 2024 3:09 pm
- Forum: Support and Development
- Topic: Input with Jump Buffer
- Replies: 6
- Views: 355
Re: Input with Jump Buffer
If you're losing keypresses because of low frame rate, you can't time them either, so in this case I don't think it makes a difference.
- Wed Apr 10, 2024 11:56 am
- Forum: Support and Development
- Topic: Weird error for a function that is correct.
- Replies: 10
- Views: 1650
Re: Weird error for a function that is correct.
This: if x then something() else if y then something_else() end is exactly the same as this: if x then something() else if y then something_else() end In the latter case, you can clearly see how the else is not closed. That's why we have elseif . This is properly closed: if x then something() elseif...
- Thu Apr 04, 2024 11:01 am
- Forum: Support and Development
- Topic: 2D Array
- Replies: 6
- Views: 563
Re: 2D Array
There's also an indentation problem within FallingSand:update(). This IF statement:
is closed at the very end of the function, but the indentation suggests that that's not the intention.
Code: Select all
if input:down('leftButton') then
- Mon Apr 01, 2024 12:39 pm
- Forum: Support and Development
- Topic: How to force draw an image on top of another image?
- Replies: 6
- Views: 519
Re: How to force draw an image on top of another image?
You can't reliably use ipairs() in that circumstance either. You have to either loop backwards, which ipairs() doesn't do, or manually advance the index or decrease the count as appropriate, like the loop I posted does.
- Sun Mar 31, 2024 8:33 pm
- Forum: Support and Development
- Topic: How to force draw an image on top of another image?
- Replies: 6
- Views: 519
Re: How to force draw an image on top of another image?
[...] local function drawImages() for i, imageData in ipairs(ImagesToDraw) do [...] if imageData.y < 600 then love.graphics.draw(image, imageData.x, imageData.y, imageData.r, 0.5, 0.5, 256/2, 256/2) else image:release() ImagesToDraw[image] = nil currentCoins = currentCoins - 1 end end end Deletion ...
- Mon Mar 25, 2024 4:18 pm
- Forum: Libraries and Tools
- Topic: Fast 2D point-in-polygon test
- Replies: 13
- Views: 16117
Re: Fast 2D point-in-polygon test
I'm concerned about this condition in your code: if py ~= lastY then Does that mean that polygons with vertical segments can't be used? From my tests, they can be used. For example, the polygon in the OP has some neighboring points with the same vertical coordinates (py == lastY), and the same hori...