Rooks can now use portals!


Pretty simple update, rooks can now use portals, go up down left or right, straight through a portal and straight out the other side

This update was a little easier than the pawns, for the pawns each of there moves use different logic, forward is basic, but diagnal requires an enemy, double up requires start position. En Passant requires a bunch of set scenarios to happen. Rooks however, just move in a direction, so after coding up motion, down is just the same but a - in place of the +, and left and right are up and down with flipped x/y co-ords

Next update should add Bishop functionality, possibly queen aswell as  that should just be a case of copying the rooks and bishops logic. 

Note - castling doesnt work with portals yet as its coded as part of the kings logic as they initiate it

Files

Portal Chess.zip 26 MB
Sep 07, 2021

Get Portal Chess

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.