Skip to content
Permalink
ac62a72ae4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
27 lines (19 sloc) 556 Bytes
package game;
import game.graphics.Texture;
public class Options {
public static boolean isWASD = true;
private static int chosenBallColor = 0;
private static Texture[] ballColors = new Texture[] {
new Texture("res/sprites/playerBlue.png"),
new Texture("res/sprites/playerRed.png"),
new Texture("res/sprites/playerGreen.png"),
};
public Options() {
}
public static void setBallColor(int newBallColor) {
chosenBallColor = newBallColor;
}
public static Texture getBallTexture() {
return ballColors[chosenBallColor];
}
}