I have another question though.
How do you call the pictures into the program? What does the URL have to be exactly?
I tried calling an image from a folder on my computer, then a UR from the internet, and tried calling it but it didn't work.
CODE
// this is where I tested out the code
import javax.swing.*;
import java.awt.*;
public class PlayerImages
{
private static final ImageIcon image = new ImageIcon ( "images/kirbyspawn(copy).jpg" );
public PlayerImages()
{
}
public static ImageIcon getImage()
{
return image;
}
}
CODE
// and this is where I tried to implement it later
PlayerImages one = new PlayerImages();
...
public static void main(String[] args) throws IOException // runs the game
{
System.out.println("Welcome to Roulette!");
one.getImage();
int numPlayers = getNumPlayers(); // gets number of players
int startChamber = spinCylinder(); // generates a random starting chamber
int bulletChamber = spinCylinder(); // generates a random chamber for the bullet