VinayGupta23 / alter-ego-game

A puzzle-platformer game with clones! Developed as part of CSCI526: Mobile Games at USC.
https://vinaygupta23.itch.io/alter-ego
0 stars 1 forks source link

Critical issue in singleton implementation #66

Closed vinayg-usc closed 2 years ago

vinayg-usc commented 2 years ago

Fixed for analytics, need to fix for level manager and verify.

We have a logic to prevent a new instance from being created, but there is no return to prevent the control from proceeding further anyway. This worked fine for level manager so far as we were not maintaining any "state" as such, but in analytics it led to a crash.

Consider this fix for level manager and verify: https://github.com/vinayg-usc/alter-ego-game/commit/0dc9c5cf8451ac0c4ba1c396c41231d819c6a8c0