curiouslearning / FeedTheMonsterJS

Javascript and HTML canvas exploration
MIT License
0 stars 4 forks source link

Getting loading animation glitch while entering end level screen. #824

Open Ashish1998 opened 11 months ago

Ashish1998 commented 11 months ago

Describe the bug Here once we play a level after the 5th puzzle we will get a glitch of the loading animation before going to the end level screen.

To Reproduce Steps to reproduce the behavior:

  1. Select any level in FTM.
  2. Play the level complete all the puzzles.
  3. At the 5th puzzle give the input and observe the glitch which appears will moving to end level screen.

Screen Record

https://github.com/curiouslearning/FeedTheMonsterJS/assets/99384703/d9c76466-8bf6-42d5-970d-f085e8cd9118

Nikhil77sutara commented 10 months ago

Hy @burrage , Here, If we remove the loading screen then blank screen will appear instead of it and which makes the flow disturbed. The loading is only coming in low end devices because it take some time to reload .

divyahariharan2103 commented 10 months ago

@burrage can you kindly confirm this

burrage commented 10 months ago

Hey all, I reviewed the video and I barely noticed it happening (had to watch the video a few times to actually figure out what we were talking about!) since it happens for a fraction of a second. I wouldn't worry about this and I would actually want to put this in the Backlog instead.

@divyahariharan2103 @Nikhil77sutara

Do we know why this happens exactly? Is it because the loading screen is always present and the canvas is laid on top of it so if the canvas takes a bit of time to load, the loading screen underneath would be shown?

Nikhil77sutara commented 10 months ago

Yes @burrage , So here we are loading the loading end level scene after the gameplay completes . So sometimes for low end devices it takes little time to load , in that case we are showing the loading screen instead of showing the blank screen. Also we are calling the loading screen if it takes some time to load the endLevel scene.