cooperuser / blockade

A minimal but challenging puzzle game, inspired by the ice puzzles in The Legend of Zelda: Twilight Princess.
2 stars 0 forks source link

Fix the level select screen (stretching boxes) #14

Closed grady404 closed 8 years ago

grady404 commented 8 years ago

Fix the boxes on the level select screen so that they don't stretch when the level numbers are in the triple digits. Don't worry about the quadruple digits, just make the level select screen cap out at 512 so that players can't go that high.

EDIT: See issue #58. The level select screen should cap out at the maximum allowed page that actually has levels in it. You should include support up to the quadruple and maybe quintuple digits, but I don't think it matters much past that. You might want to disallow the users to add more than 512 pages so the level numbers don't go past 8192, or if you're planning on supporting quintuple digits, cap the pages at 4096 so the levels don't go past 65536. As a note, just make sure the program doesn't throw an error if there are absolutely no levels stored in the game's files; as a fix for this, cap the page count at 1 rather than 0 in that case so the level select screen doesn't glitch.

grady404 commented 8 years ago

The level select is untouched.