flipped unflipped sign

This commit is contained in:
Lily-129 2022-01-28 12:30:44 -05:00 committed by GitHub
parent 753c264d3f
commit 86cb14d4ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ elements.portal_in = {
randomDestination = pixel.portalArray[Math.floor((Math.random() * pixel.portalArray.length))]
if(!isEmpty(pixel.x-1,pixel.y) && !outOfBounds(pixel.x-1,pixel.y)) {
if(pixelMap[pixel.x-1][pixel.y].element != pixel.element) {
tryMove(pixelMap[pixel.x+1][pixel.y],(randomDestination[0] + 1),(randomDestination[1]))
tryMove(pixelMap[pixel.x-1][pixel.y],(randomDestination[0] + 1),(randomDestination[1]))
}
}
if(!isEmpty(pixel.x+1,pixel.y) && !outOfBounds(pixel.x+1,pixel.y)) {