Add player container
This commit is contained in:
parent
1cd8f5fbe6
commit
b55e927a34
1 changed files with 159 additions and 133 deletions
|
|
@ -1,8 +1,13 @@
|
|||
import { rgb255 } from './helper/rgb255';
|
||||
import { CharacterTeam } from './objects/types/character-team';
|
||||
|
||||
const q = 2.5;
|
||||
const qDim = 1.5;
|
||||
const declaColor = rgb255(64 * q, 105 * q, 165 * q);
|
||||
const neutralColor = rgb255(82 * q, 165 * q, 64 * q);
|
||||
const redColor = rgb255(209 * q, 86 * q, 82 * q);
|
||||
const declaColorDim = rgb255(64 * qDim, 105 * qDim, 165 * qDim);
|
||||
const redColorDim = rgb255(209 * qDim, 8 * qDim, 82 * qDim);
|
||||
const declaPlanetColor = declaColor;
|
||||
const redPlanetColor = redColor;
|
||||
|
||||
|
|
@ -32,14 +37,18 @@ export const settings = {
|
|||
projectileFadeSpeed: 20,
|
||||
projectileCreationInterval: 0.1,
|
||||
playerColorIndexOffset: 3,
|
||||
backgroundGradient: [rgb255(90, 38, 43), rgb255(43, 39, 73)],
|
||||
backgroundGradient: [rgb255(90, 38, 43), rgb255(0, 0, 0), rgb255(43, 39, 73)],
|
||||
declaColor,
|
||||
declaPlanetColor,
|
||||
redColor,
|
||||
redPlanetColor,
|
||||
declaIndex: 0,
|
||||
redIndex: 1,
|
||||
palette: [declaColor, redColor],
|
||||
colorIndices: {
|
||||
[CharacterTeam.decla]: 0,
|
||||
[CharacterTeam.neutral]: 1,
|
||||
[CharacterTeam.red]: 2,
|
||||
},
|
||||
palette: [declaColor, neutralColor, redColor],
|
||||
paletteDim: [declaColorDim, neutralColor, redColorDim],
|
||||
targetPhysicsDeltaTimeInMilliseconds: 20,
|
||||
minPhysicsSleepTime: 4,
|
||||
velocityAttenuation: 0.25,
|
||||
|
|
|
|||
Loading…
Reference in a new issue