home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global verticalAData, verticalBData, horizontalAData, horizontalBData, stampShape, fallBlockData
- pointClicked = the mouseLoc - the loc of sprite 2
- tileClicked = (pointClicked / 40) + 1
- horizontalAData[tileClicked[2]][tileClicked[1]] = stampShape[1]
- horizontalBData[tileClicked[2]][tileClicked[1]] = stampShape[2]
- verticalAData[tileClicked[2]][tileClicked[1]] = stampShape[3]
- verticalBData[tileClicked[2]][tileClicked[1]] = stampShape[4]
- wY = tileClicked[2]
- wX = tileClicked[1]
- h1 = horizontalAData[wY][wX]
- h2 = horizontalBData[wY][wX]
- v1 = verticalAData[wY][wX]
- v2 = verticalBData[wY][wX]
- bitData = translateSet(h1, h2, v1, v2)
- testSolidity()
- stampShape = [0, 0, 0, 0]
- stampShape[1] = random(2) - 1
- stampShape[2] = random(2) - 1
- stampShape[3] = random(2) - 1
- stampShape[4] = random(2) - 1
- setBlock(stampShape[1], stampShape[2], stampShape[3], stampShape[4])
- fallBlockData[2] = point(3, 0)
- fallBlockData[4] = 0
- end
-