I am encountering a few bugs and Im wondering if anybody else has encountered them as well.
The first is that when I switch screens some game objects are left over. Imagine a whole bunch of enemies that did't get destroyed when you move to the game over screen.
The second is that some web GL effects just randomly stop working. This only happens when I change screens. After I change layouts a few times then the screen goes black.
I think this is something in the backend that I can't control. The only thing that I can think of is that I am changing screens the wrong way.
I should also mention that I am reseting global variables when I exit the game over screen.
Anybody encounter these kinds of bugs?