Merge pull request #99 from aguibert/player-color-scheme

Update player colors to orange/green/blue/purple
This commit is contained in:
Andrew Guibert 2018-05-16 11:23:38 -05:00 committed by GitHub
commit b5b3074d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ export class PlayerTooltip {
constructor(public player: Player) {
if (!this.player.color)
console.log('WARNING: Creating a tooltip with a player that is not properly initialized');
this.nameText = new Text(this.player.name, "28px Arial", "#fff");
this.nameText = new Text(this.player.name, "28px Arial", "#000");
this.nameText.textAlign = 'center';
this.nameText.maxWidth = 200;
this.shape.graphics.beginFill(this.player.color)

View File

@ -62,13 +62,13 @@ public class Player {
if (playerNum >= MAX_PLAYERS)
throw new IllegalArgumentException("Cannot create player number " + playerNum + " because MAX_PLAYERS=" + MAX_PLAYERS);
if (playerNum == 0) {
color = "#DF740C";
color = "#f28415"; // orange
} else if (playerNum == 1) {
color = "#FF0000";
color = "#ABD155"; // bright green
} else if (playerNum == 2) {
color = "#6FC3DF";
color = "#6FC3DF"; // light blue
} else {
color = "#FFE64D";
color = "#c178c9"; // light purple
}
}

View File

@ -14,7 +14,7 @@ import org.libertybikes.game.core.Obstacle;
public class GameMap {
public static final int NUM_MAPS = 4; // Not including empty map
public static final int NUM_MAPS = 5; // Not including empty map
private static final Random r = new Random();
/**