Game Development Reference
In-Depth Information
_wordListDown[tile.
downIndex-1].push(tile);
startOfWord = true;
}
if (startOfWord) {
tile.wordIndex =
totalWords++;
}
if (tile.acrossIndex < 0) {
var previousAcrossTile:
CrosswordTile =
_tileList[_tileList.
length-1];
_wordListAcross[previousAcrossTile.acrossIndex-1].push
(tile);
tile.acrossIndex =
previousAcrossTile.
acrossIndex;
}
if (tile.downIndex
<
0) {
if (i > 0) {
var previousDown
Tile:Crossword
Tile = _tileList
[_tileList.
length-
_puzzleWidth];
if (previousDown
Tile.letter !=
CrosswordTile.
EMPTY) {
_wordListDown[previousDownTile.downIndex-1].push(tile);
tile.downIndex=
previousDown
Tile.
downIndex;
}
}
}
}
_tileList.push(tile);
tile.x = j*tile.width;
tile.y = i*tile.height;
addChild(tile);
tile.addEventListener(MouseEvent.CLICK,
selectTile, false, 0, true);
}
Search Nedrilad ::




Custom Search