Hello,
I´m doing a Battletech game as part of a university project. The GUI part is more or less done, but I´m stuck in drawing the board. I thought about using a JPanel and rewritting the paintComponent method.
The board is formed by hexagonal tiles. I have all tiles stored in png files (28x32), and I have read that I need to aply a mask to the tiles to draw them (to take out the parts of the rectangle that aren´t the hexagon). But I´m completely lost on how to do this.
Any ideas, tutorials,…? Thanks in advance. Greetings,
Vicente