[pongwars] color changes

also make initial state noise rather than rows, which is fairer
This commit is contained in:
dogeystamp 2024-02-15 19:21:32 -05:00
parent 3453efe5c8
commit 93e620daef

View File

@ -97,8 +97,8 @@
const teams = [ const teams = [
{ {
name: "red", name: "red",
color: "#ff5555", color: "indianred",
backgroundColor: "#aa0000", backgroundColor: "darkred",
x: 256, x: 256,
y: 256, y: 256,
dx: 8, dx: 8,
@ -107,8 +107,8 @@
}, },
{ {
name: "blue", name: "blue",
color: "#5555ff", color: "blue",
backgroundColor: "#200199", backgroundColor: "darkblue",
x: 768, x: 768,
y: 256, y: 256,
dx: -8, dx: -8,
@ -117,8 +117,8 @@
}, },
{ {
name: "green", name: "green",
color: "#a7f070", color: "green",
backgroundColor: "#00aa00", backgroundColor: "darkgreen",
x: 256, x: 256,
y: 768, y: 768,
dx: 8, dx: 8,
@ -127,8 +127,8 @@
}, },
{ {
name: "orange", name: "orange",
color: "#ffff55", color: "coral",
backgroundColor: "#aa5500", backgroundColor: "chocolate",
x: 768, x: 768,
y: 768, y: 768,
dx: -8, dx: -8,
@ -137,8 +137,8 @@
}, },
{ {
name: "white", name: "white",
color: "#ffffff", color: "white",
backgroundColor: "#aaaaaa", backgroundColor: "gainsboro",
x: 400, x: 400,
y: 768, y: 768,
dx: -9, dx: -9,
@ -148,7 +148,7 @@
{ {
name: "black", name: "black",
color: "#333333", color: "#333333",
backgroundColor: "#000000", backgroundColor: "black",
x: 400, x: 400,
y: 300, y: 300,
dx: -8, dx: -8,
@ -157,8 +157,8 @@
}, },
{ {
name: "ourple", name: "ourple",
color: "#dd33dd", color: "violet",
backgroundColor: "#aa00aa", backgroundColor: "purple",
x: 400, x: 400,
y: 768, y: 768,
dx: -8, dx: -8,
@ -167,7 +167,7 @@
}, },
{ {
name: "gray", name: "gray",
color: "#dddddd", color: "gray",
backgroundColor: "#333333", backgroundColor: "#333333",
x: 400, x: 400,
y: 768, y: 768,
@ -200,8 +200,8 @@
for (let i = 0; i < numSquaresX; i++) { for (let i = 0; i < numSquaresX; i++) {
squares[i] = []; squares[i] = [];
const t = randInt(0, teams.length-1);
for (let j = 0; j < numSquaresY; j++) { for (let j = 0; j < numSquaresY; j++) {
const t = randInt(0, teams.length-1);
squares[i][j] = t; squares[i][j] = t;
} }
} }