I am trying to make a simple battleship game.
I have created a canvas and on it I drew a grid with lines. I am looking for something that equates to "if this region (the area within a cell on the grid) is clicked change some some value".
Is there anything like this, where I can define clickable regions?