Basic Board


Basic Board


Starting out we had a look at what we had previously for our Board game & refamiliarised ourselves with it's rules & items needed. I've decied to break it down to its most basic levels with that of piece movement, and the ability to End your turns.

With this I've created a simple subclass of the Game Object class named Player. This contains a simple current Position Integer along with all the Game Object parameters such as Sprite Components etc.


In addition to this, I've also created a simple move piece function that adds say 15 or so pixels to it's Y or X position depending on which player is going.

Every time this function is called it'll add 1 to it's current position, therefore, we can check whether or not it's reached the end of the board or not.