I need to make a game board - using an array - for a Bomberman game remake in Processing.
This means the game board / array (which is rather large [9x9] and has 3 values [a,b,c] throughout), has to be able to:
- Define the color/sprite of the according fields
- Set the limit for where the character can walk
- Have unique properties for each value/field (one value represents the open space where the player can move around, another is a solid block, and another one breaks when a bomb is blown up next to it and transforms into an open field type)
I'm pretty much a programming noob and I barely a clue how to make all of this work.. I've already set up the array though which look like this:
int [][] board = {
{b, b, b, b, b, b, b, b, b},
{b, a, b, a, b, a, b, c, b},
{b, c, c, a, a, a, a, a, b},
{b, c, a, a, c, a, a, a, b},
{b, c, c, b, a, b, c, a, b},
{b, a, c, a, a, a, a, a, b},
{b, b, a, b, c, b, b, c, b},
{b, a, a, a, c, a, a, c, b},
{b, b, b, b, b, b, b, b, b} };
And I have managed to draw it as a monochrome chessboard. Now I just have to figure out how to give each value the properties of the according block type.
Thanks for any help in advance :)