landgreen / n-gon

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

[BUG] Picking up tech occasionally causes the game to zoom way out #294

Closed Dystopia-user181 closed 1 month ago

Dystopia-user181 commented 3 months ago

Picture of it happening with all the tech I have. (This is on chrome browser, if it affects the bug)

image

I attempted to reset it to normal with simulation.zoom = simulation.zoomScale = 0.3 but then I had the opposite problem where picking up tech or going to a new level would cause the screen to zoom in like crazy.

landgreen commented 3 months ago

hmmmmm I can't figure out how that would work.

Has it happened more than once? Did it happen only on community maps?

JayCubby-enwiki commented 3 months ago

Has it happened more than once? Did it happen only on community maps? I have only seen it on community maps myself, I've forgotten which

Edit5920 commented 2 months ago

It happens a lot for me and always on community maps. Also it only happens when experimenting.

jo9182 commented 1 month ago

It happens to me occasionally. I believe it has only happened on community maps, though

corneeme commented 1 month ago

I had a similar problem on the map with the sword except it was when the boss on that level hit me

corneeme commented 1 month ago

I think I figured it out, sometimes when you pick up a tech and scroll it will zoom you out, if that happens you can also scroll to zoom in and out

landgreen commented 1 month ago

ok so the bug report about simulation.enableConstructMode() being left in several community maps is linked to this bug

I'm gonna call it solved good job @corneeme