Search found 629 matches
- Mon May 20, 2024 3:31 pm
- Forum: Support and Development
- Topic: How do you really tell if your game has a memory leak?
- Replies: 4
- Views: 150
Re: How do you really tell if your game has a memory leak?
Practical example for a memory leak: Have a textbox, have it have a zoom in/out function. We reload our font with Font = love.graphics.newFont( zoom) _Font_ is overwriten each time so logically we would assume the old font data is discardet as it is no longer referenced. This is not the case because...
- Sun May 19, 2024 5:35 pm
- Forum: Support and Development
- Topic: Screen Size behavior
- Replies: 1
- Views: 107
Re: Screen Size behavior
Somewhere in this player:draw mess you call either translate or scale which of course makes all following positions incorrect.
- Wed May 15, 2024 5:30 pm
- Forum: Support and Development
- Topic: whats the best way to make general colision detection?
- Replies: 5
- Views: 282
Re: whats the best way to make general colision detection?
Thats a broad question and largely depends on what type of game, how many objects are on the screen or even how many pixels the game has. Losely there are 3 approaches to this: Mapping based - Where the entire viewable area is mapped to a table, that means around 10-100 pixel are grouped together as...
- Sat May 04, 2024 6:52 pm
- Forum: Support and Development
- Topic: Bottons activating when I maintain them on touchscreen
- Replies: 3
- Views: 696
Re: Bottons activating when I maintain them on touchscreen
Putting this in the touchpress callback looks like an error to me.
Put this in the update loop instead.
Put this in the update loop instead.
- Fri May 03, 2024 4:55 pm
- Forum: General
- Topic: Need some help guys!
- Replies: 5
- Views: 1104
Re: Need some help guys!
+1 is the the only math most games need.
- Fri May 03, 2024 4:12 pm
- Forum: Support and Development
- Topic: Help with "fade out" effect
- Replies: 3
- Views: 620
Re: Help with "fade out" effect
That .love is packaged incorrectly. I see no fading at all here and i am not sure what exactly you need. But you dont need to have multiple canvases for it. If you just want a fading trail then the smartest solution is to have a table full of positions that you just prepend (table insert) the curren...
- Thu May 02, 2024 7:12 pm
- Forum: General
- Topic: Is LÖVE good enough for a big metroidvania game?
- Replies: 7
- Views: 980
Re: Is LÖVE good enough for a big metroidvania game?
Löve has a better performance than anything else i am aware of.
- Wed May 01, 2024 4:17 pm
- Forum: General
- Topic: Image format size pickle
- Replies: 19
- Views: 1942
Re: Image format size pickle
Yea but i need to infuse the transparency between that.
I have not tried yet but i will probably generate it in Löve itself so i end up with a badly compressed png here.
I have not tried yet but i will probably generate it in Löve itself so i end up with a badly compressed png here.
- Wed May 01, 2024 3:06 pm
- Forum: General
- Topic: Image format size pickle
- Replies: 19
- Views: 1942
Re: Image format size pickle
Oh wow thanks for finding these, so i tried them on the 10mb file and it gave a 40% reduction to 6mb. But THEN i tried them on a file where i already added an alpha layer and did the cutout and the reduction was over 60%. I can live with that. I also found another stupid method: just save the file a...
- Wed May 01, 2024 2:09 pm
- Forum: General
- Topic: Image format size pickle
- Replies: 19
- Views: 1942
Re: Image format size pickle
Yes knorke i know how masks work and they are in consideration, i just dont like using them for this tasks.
I just tried optipng, that sounded promising, i was looking for exatly that, BUT it only reduced the 10.8mb file to a lousy 10.4mb which is even worse than having gimp do it.
I just tried optipng, that sounded promising, i was looking for exatly that, BUT it only reduced the 10.8mb file to a lousy 10.4mb which is even worse than having gimp do it.