Search found 632 matches

by BrotSagtMist
Mon May 20, 2024 11:52 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 11
Views: 349

Re: How do you really tell if your game has a memory leak?

There is no fancy wording here. Take the first line from wikipedia "a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations[1] in a way that memory which is no longer needed is not released." Which i read as a clear black and whit...
by BrotSagtMist
Mon May 20, 2024 11:04 pm
Forum: Support and Development
Topic: How do you really tell if your game has a memory leak?
Replies: 11
Views: 349

Re: How do you really tell if your game has a memory leak?

This is the very definition of a memory leak.
And of course its not anymore if you call garbage collect, i mean.... thats the point.
What are you trying to say here?
by BrotSagtMist
Mon May 20, 2024 6:44 pm
Forum: General
Topic: Pool(Billiards) physics (Need help)
Replies: 5
Views: 216

Re: Pool(Billiards) physics (Need help)

This is already cooler than 90% of what you find in comercial pool games for old consoles.

The problem here is that this kind of game is all about physics, you gotta have to nail it or else its garbage.
So pool is not the smartest starting point to get into game dev.
by BrotSagtMist
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: 11
Views: 349

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...
by BrotSagtMist
Sun May 19, 2024 5:35 pm
Forum: Support and Development
Topic: Screen Size behavior
Replies: 1
Views: 113

Re: Screen Size behavior

Somewhere in this player:draw mess you call either translate or scale which of course makes all following positions incorrect.
by BrotSagtMist
Wed May 15, 2024 5:30 pm
Forum: Support and Development
Topic: whats the best way to make general colision detection?
Replies: 5
Views: 285

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...
by BrotSagtMist
Sat May 04, 2024 6:52 pm
Forum: Support and Development
Topic: Bottons activating when I maintain them on touchscreen
Replies: 3
Views: 697

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.
by BrotSagtMist
Fri May 03, 2024 4:55 pm
Forum: General
Topic: Need some help guys!
Replies: 5
Views: 1107

Re: Need some help guys!

+1 is the the only math most games need.
by BrotSagtMist
Fri May 03, 2024 4:12 pm
Forum: Support and Development
Topic: Help with "fade out" effect
Replies: 3
Views: 622

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...
by BrotSagtMist
Thu May 02, 2024 7:12 pm
Forum: General
Topic: Is LÖVE good enough for a big metroidvania game?
Replies: 7
Views: 987

Re: Is LÖVE good enough for a big metroidvania game?

Löve has a better performance than anything else i am aware of.