Vietnam Coins
Games for Windows | Games for PocketPC | Games for SmartPhone | Online games
Home | Message board

3 Balls file format


  Probably, the easiest way to create new level for 3 Balls puzzle
is using 3 Ball Level Editor.

When the new level is ready, go to Edit -> Copy,
and copy the layout string to the text file.
One line - one level. Check a sample file: all3x3.3balls.

The same layout string can be used for java applet on your website.


Here is a brief description for the layout string
for those who likes to write programs :)

5403244001204f1a5a279b851 Cool new level
First position defines the size of the field. It can be only 3, 5 or 7

5403244001204f1a5a279b851 Cool new level
Positions 2 : 7 define the initial positions of red, green and blue balls.

5403244001204f1a5a279b851 Cool new level
Positions 8 : 13 define the final positions of the balls.

5403244001204f1a5a279b851 Cool new level
The rest of the string defines the labyrinth layout. Each cell can be coded by 2 bits:
If there is a way down from the cell, the first bit is set to 1, otherwise 0.
If there is a way right from the cell, the second bit is set to 1, otherwise 0.
Each consecutive pair of cellsis is coded by hexadecimal digit:
11 11 = f, 00 01 = 1, 10 10 = a, 01 01 = 5, etc...
The last cell does not need to be coded: it never has the way down or rignt from it.

5403244001204f1a5a279b851 Cool new level
Finally, whatever else left till the end of the line is the level name.

Please let us know what you think!


(C) 2000-11, PYVA-NET