xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Anyone Interested In Sobokan?
flattspott
post Jun 26 2004, 02:10 AM
Post #1


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



It's a puzzle game where you have to move some blocks around. Lokks doable.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Yuyu
post Jun 26 2004, 03:05 AM
Post #2


X-S Spirit Detective
*****

Group: Moderator
Posts: 1231
Joined: 11-June 03
From: Belleville, IL
Member No.: 43348
Xbox Version: v1.1
360 version: v2 (zephyr)



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...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Jun 26 2004, 04:17 AM
Post #3


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Yuyu
post Jun 26 2004, 05:47 AM
Post #4


X-S Spirit Detective
*****

Group: Moderator
Posts: 1231
Joined: 11-June 03
From: Belleville, IL
Member No.: 43348
Xbox Version: v1.1
360 version: v2 (zephyr)



This is the one I was talking about HERE


This post has been edited by Yuyu: Jun 26 2004, 05:57 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
chilin_dude
post Jun 26 2004, 07:00 AM
Post #5


X-S Knowledgebase
********

Group: Members
Posts: 4945
Joined: 12-January 03
From: USA
Member No.: 19165
Xbox Version: v1.0
360 version: unknown



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Jun 26 2004, 10:37 PM
Post #6


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
geniusalz
post Jun 26 2004, 11:39 PM
Post #7


Team MXM
*****

Group: Head Moderator
Posts: 1827
Joined: 3-January 03
Member No.: 16298
Xbox Version: v1.1
360 version: unknown



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)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Jun 26 2004, 11:43 PM
Post #8


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



Yeah, like get the column and row counts then size the tiles accordingly beforehand.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
chilin_dude
post Sep 18 2004, 10:02 AM
Post #9


X-S Knowledgebase
********

Group: Members
Posts: 4945
Joined: 12-January 03
From: USA
Member No.: 19165
Xbox Version: v1.0
360 version: unknown



Still planning on releasing this?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 21st May 2013 - 05:56 PM