KOBUGE-Games/minilens

Level advancement is broken on Android and HTML5

akien-mga opened this issue · 4 comments

I had noticed this on HTML5 already, but apparently Android has the same bug: whenever you finish a level, it tells you that you finished the whole pack, and you have to go back to the menu to be able to select the next level.

The error comes from the method used to check if there are other levels, it's probably not working on Android and HTML5: https://github.com/KOBUGE-Games/minilens/blob/master/scripts/level_holder.gd#L125-L130

I've tried with File.file_exists instead, but it gives the same issue. I guess Android can't access the contents of res:// with the File API?

@akien-mga ~ I guess that if we move https://github.com/KOBUGE-Games/minilens/blob/master/scripts/main_menu.gd#L58-L65 to a global script, it might be possible to access them from the level holder and just check with </>

Should be fixed with 76d451f