For WfW, I would like to know which color means what
Right! As I don't remember how WfW stuff works I am going to do my best from the code comments:
Glossary:
Ok, first off, some terminology.
* Blocks: Blocks are the graphics used to make up Lines.
* Lines: Are used to connect between different Nodes
* Nodes: Are the small circles you see about the place and are possible connection points.
* Pads: Are special nodes, which will contain a weapon.
* Tiles: are graphics containing any of the things above, represented by different colours.
Lines:
White is replaced by normal Blocks that make horizontal and vertical lines. Yellow lines are the same, but use the diagonal graphics.
Nodes:
Nodes are the small orange or blue circles, and are the main connection points between different Tiles. They use various shades of green:
RGB(0,255,0) : Top Connecting Node : A node placed near the top, a good candidate for connecting to a Bottom Connecting Node.
RGB(0,128,0) : Bottom Connecting Node : (Like above)
RGB(128,255,128) : Left Conneting Node: (Like above)
RGB(0,192,0) : Right connecting node: (like above)
RGB(0,0,255) : Dummy node: Will add a node, like the above, but flag it as used so that it cannot be conencted too. (good for corners)
Pads:
RGB(255,0,0): These make up the main gameplay surface, providing positions for the placemnt of weapons.
Blocking Areas:
RGB (0,255,255) and RGB (0,255,255)
Both of these are used to mark areas that no other tile should overlap. Connecting nodes should stick out a bit to allow connection.
The brighter of these, is used (as far as I can tell) To show important areas e.g. the space a Pad will take up when the tile is placed, or an area that would become inaccessible if blocked.
Code wise however, they seem to be treate the same. It checks for these areas before placing a new tile. This check is only one way though, a black pixel on the new tile will collides with one of these on an old one and be rejected. This is proabbly a bug realy though...
It continues to do this, either chaining tiles together or starting new ones until it hits the required number of Pads.
Hope that helps, any more questions let me know, and if you come up with some new tiles that work realy well (or find some of mine that tend to ruin it) let me know and if you want I can get them added to the main package.
Good luck!