I want to make a simple game, some pictures drawed in a grid that change when clicked, like tic tac toe but in a bigger grid, looks like the X2 is an overkill to this.
I want to make a simple game, some pictures drawed in a grid that change when clicked, like tic tac toe but in a bigger grid, looks like the X2 is an overkill to this.
in this case it is not so important but it is a good practice to draw only the stuff you wanna draw. the background (number table) is never changing so there is no reason to draw it 60 times per second so I draw it on a background canvas only once.
drawing each rectangle gives me more control and I can do many things like drawing each rectangle with a different alpha value or color you can of course draw only 2 rectangle so it is up to you what you wanna do.
drawing each rectangle gives me more control and I can do many things like drawing each rectangle with a different alpha value or color you can of course draw only 2 rectangle so it is up to you what you wanna do.