I’m building a program and I’m stuck at picking a random image that already is defined in the program.
Here’s the code:
Image Opic = new Image(getClass().getResourceAsStream("Resource/O1.png"));
Image Xpic = new Image(getClass().getResourceAsStream("Resource/X1.png"));
Image PlayerPic = new Random[Opic,Xpic];
Image AiPic = new Random[Opic,Xpic];
Aucun commentaire:
Enregistrer un commentaire