The foundation of OGT Level Manager is a grid of images that allows the user to choose a level. Here are the variables that allow you to change the look and position of that grid.
You can have as few as 1 level or as many as… Well, I don’t know what the upper limit is, but it’s higher than you’ll want to go simply from a user-experience standpoint. Set k.totalLevels to the total number of levels. Based on the column and row settings the pages of levels will be created automatically.
k.totalLevels = 30
How many columns of levels do you want on a single screen? Set k.numCols to that value. Set k.numRows to the number of rows you want. Remember that if k.totalLevels is high enough paging will be activated and you’ll need to leave room on the right and left sides of the screen for your next and previous arrow buttons.
k.numCols = 4 k.numRows = 2
To add some extra spacing between each element of the grid, set these variables. Since the score is shown below the level image you must set k.rowSpace to make room for those if k.showScore is set to true.
k.colSpace = 10 k.rowSpace = 10
The grid of level elements is set to display centered on the screen, both horizontally and vertically. You can use the following variable to change the position of the entire grid.
k.gridOffsetX = 0 k.gridOffsetY = 0
Back to OGTLM Dashboard