landgreen / n-gon

2-d physics rogue-lite platformer shooter
https://landgreen.github.io/n-gon/
GNU General Public License v3.0
134 stars 193 forks source link

Bug: Game Freeze #179

Closed The-Rock-21 closed 4 months ago

The-Rock-21 commented 4 months ago

Edit: It seems I wasn't specific enough, let me elaborate. I was playing around with testing mode and there is this command in testing mode where if you click G, you can get every single gun (laser, super ball, shotgun, etc). I then spawned a bunch of tech and started to use them. When I have a lot of tech, and when I pick up a gun, my game just freezes, kind of. I can still move around and pick things up but the screen just stays frozen. It seems to happen randomly. It has happened to me several times Screenshot 2024-03-06 6 59 47 AM Screenshot 2024-03-06 7 00 15 AM I can move around and pick things up but it might not be obvious.

136166 commented 4 months ago

By what means did you get all the guns?

landgreen commented 4 months ago

hmmm I can fix any bug I can produce. So we need the recipe to make the bug again. having all the guns doesn't seem to be enough, but if you figure out how to make it occur repeatedly please let me know.

The-Rock-21 commented 4 months ago

I eidted my comment to be more specific

oriaura1 commented 4 months ago

if you it ctrl+minus, and then ctrl+plus, it fixes it for me but i still don't know what causes it. and it seems to happen when you get to many tech, enemies, or bullets i'm not sure witch.

landgreen commented 4 months ago

I might have found this bug, the game crashed because it was drawing circles that had a negative radius. It only happens late game because you need some crazy values to get it to occur. I'm gonna close this bug.