KOBUGE-Games / minilens

Cute puzzle platformer starring a cleaning robot on post-apocalyptic Earth
http://kobuge-games.github.io/minilens
GNU General Public License v3.0
134 stars 38 forks source link

Level advancement is broken on Android and HTML5 #75

Closed akien-mga closed 8 years ago

akien-mga commented 8 years ago

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.

akien-mga commented 8 years ago

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

akien-mga commented 8 years ago

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?

bojidar-bg commented 8 years ago

@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 </>

bojidar-bg commented 8 years ago

Should be fixed with 76d451f1f11b4a2607afd43b5a028dd4657f7ec6