| CODE |
| If Level = 15 Then LevelData(1) = "XXXXXXXXXXXXXXXXXXXX" LevelData(2) = "XXXXXXXXXXXXXXXXXXXX" LevelData(3) = "XXXXXVVVVVVVVXXXXXXX" LevelData(4) = "XXXXXV V VXXXXXXX" LevelData(5) = "XXXXXV L VXXXXXXX" LevelData(6) = "XXXVVV VL VVVVXXXX" LevelData(7) = "XXXV L VVL VXXXX" LevelData(8) = "XXXV V L V LVXXXX" LevelData(9) = "XXXV V L VVVVX" LevelData(10) = "XXXVV VVVVLVV VX" LevelData(11) = "XXXV LVFFFFFV V VX" LevelData(12) = "XXXV LFFffF LV VVVX" LevelData(13) = "XXVV VFFFFFV VXXX" LevelData(14) = "XXV VVV VVVVVVVXXX" LevelData(15) = "XXV LL V VXXXXXXXX" LevelData(16) = "XXV V VXXXXXXXX" LevelData(17) = "XXVVVVVV VXXXXXXXX" LevelData(18) = "XXXXXXXVVVVVXXXXXXXX" LevelData(19) = "XXXXXXXXXXXXXXXXXXXX" LevelData(20) = "XXXXXXXXXXXXXXXXXXXX" LevelData(21) = "149" End If |
| CODE |
| :CenterCoordinates Set ScreenCenterX %((ScreenWidth-(Columns*TileSize))/2)% Set ScreenCenterY %((ScreenHeight-(Rows*TileSize))/2)% Return :ScreenSize Set ScreenLeft 0 Set ScreenTop 0 Set ScreenWidth 640 Set ScreenHeight 480 Return |
| QUOTE (flattspott @ Jun 27 2004, 03:37 AM) | ||
| So I got that SokoSolve app. Pretty cool I've been testing some gosub's for just displaying the boards. I ran into a small problem though. Not all boards have the same number of rows and columns. So if if one puzzle is 10x10 and I use 36x36 tiles you'll see the whole thing. Where as if it's 20x20 with 36x36 tiles it'll get cutoff the screen. I did come up with a solution to it. You can rescale the puzzle board at runtime. Make a big one smaller or a small one bigger if you need or want to. And to top it off the whole board gets centered onscreen to regardless of the row and column count's. Here's some of the magic:
|