I'm writing a networked Battleships game, with 200 images. I need to know which Image on Panel2 is clicked in order to subtract 100 from it. Panel1 contains 100 images, panel2 100 images. Looking at arrays as possible answer, so I can get the Integer value, subtract from it and then post to networked player. Panel1 images are from 1-100, Panel2 images are from 101-200. I need to reference Panel2.image[x] to Panel1.image[x], to verify hit or miss.
Any suggestions will be highly appreciated.
Aucun commentaire:
Enregistrer un commentaire