All pieces can use portals!


Okay, all pieces can now move through the portal freely! This means the base of the game is done, and fully playable. There's still more to do, namely new models for everything, functionality such as changing teams on rematch. And some game rules that are yet to be decided on, like castling through a portal.

However, in its current state the game is fully playable. Changes to gameplay/functionality will be minimal from here so hope you have fun playing :D 

This update included adding functionality for the rest of the pieces, this was relatively easy, Bishops followed a pretty similar formula to rooks, and queen was just a copy and paste of rook and bishop movement. Knights were also easy, since they don't have  as many requirements to move as other pieces (like worrying about being blocked) it was a quick add. Kings were also easy, they move one square, easy addition.

I also got this project up and running on Linux, only had a couple issues to sort but a release of a Linux version will be added soon.

Not to much a game change, but did a big clean-up of the code in this release, mostly adding a consistent naming convention across the board and removing some unneeded extra lines.  will probably do some more in the next update as i know there is some stuff that can be moved to methods and simplified.

Bugfixes

  1. Fixed  an issue with rematch in local games, this was caused by the "Current Team" not being reset on rematch, so if you ended on current team being black, you couldn't make a move. This only occurred locally as you can't change team at the moment online, host is white, client is black
  2. There was a couple cases where pieces would break due to going out of bounds, this was only present in some cases for a rook in the release version but nothing a simple out of bounds check couldn't fix.
  3. There was an issue with being able to take a portal when travelling through a portal, the code only checked it was an enemy once it had travelled through a portal which technically the enemy portal is. Either way, quick fix to check the piece you are taking isn't a portal.
  4. Similar issue with rooks being able to go through friendlies after going through a portal as the check if a piece was there only said what to do if it was an enemy

Files

Portal Chess.zip 26 MB
Sep 09, 2021

Get Portal Chess

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.