Help - Search - Members - Calendar
Full Version: Anyone Interested In Sobokan?
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM WIP Beta forum
flattspott
It's a puzzle game where you have to move some blocks around. Lokks doable.
Yuyu
I was actually just looking at a version on source forge that has the puzzle files in xml format and everything, I hope you could do it, that game is awsome...
flattspott
Well the source Im basing this off of is from planetsoucrecode.
Originally the level stuff was like:
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


I changed it to an XML form. All 20 levels
Yuyu
This is the one I was talking about HERE
chilin_dude
Oh dear lord I nearly had an orgasm wink.gif
I LOVE sokoban, me and my friends actually have ultimate competitions for cash on it....
PLEASE port it smile.gif
flattspott
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:
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
geniusalz
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:
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

Cool, you could also make it auto-fit-to-screen (if it already isn't)
flattspott
Yeah, like get the column and row counts then size the tiles accordingly beforehand.
chilin_dude
Still planning on releasing this?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.