This commit is contained in:
Andras Schmelczer 2026-06-12 21:46:47 +01:00
parent ec579650d7
commit 1f10b9c750
28 changed files with 134 additions and 220 deletions

View file

@ -4,7 +4,7 @@ import { Command } from '../command';
@serializable
export class UpdateGameState extends Command {
public constructor(
public readonly declaCount: number,
public readonly blueCount: number,
public readonly redCount: number,
public readonly limit: number,
) {
@ -12,6 +12,6 @@ export class UpdateGameState extends Command {
}
public toArray(): Array<any> {
return [this.declaCount, this.redCount, this.limit];
return [this.blueCount, this.redCount, this.limit];
}
}

View file

@ -4,7 +4,7 @@ import { serializable } from '../../serialization/serializable';
import { GameObject } from '../game-object';
export enum CharacterTeam {
decla = 'decla',
blue = 'blue',
neutral = 'neutral',
red = 'red',
}

View file

@ -1,13 +1,13 @@
import { rgb255 } from './helper/rgb255';
import { CharacterTeam } from './objects/types/character-base';
const declaColor = rgb255(64, 105, 165);
const blueColor = rgb255(64, 105, 165);
const neutralColor = rgb255(82, 165, 64);
const redColor = rgb255(209, 86, 82);
const q = 2.5;
const declaColorDim = rgb255(64 * q, 105 * q, 165 * q);
const blueColorDim = rgb255(64 * q, 105 * q, 165 * q);
const redColorDim = rgb255(209 * q, 86 * q, 82 * q);
const declaPlanetColor = declaColorDim;
const bluePlanetColor = blueColorDim;
const redPlanetColor = redColorDim;
export const settings = {
@ -64,8 +64,8 @@ export const settings = {
chargeShotSpeedMax: 3400,
playerColorIndexOffset: 3,
backgroundGradient: [rgb255(90, 38, 43), rgb255(43, 39, 73)],
declaColor,
declaPlanetColor,
blueColor,
bluePlanetColor,
npcNames: [
'Adam',
'Andrew',
@ -119,12 +119,12 @@ export const settings = {
redColor,
redPlanetColor,
colorIndices: {
[CharacterTeam.decla]: 0,
[CharacterTeam.blue]: 0,
[CharacterTeam.neutral]: 1,
[CharacterTeam.red]: 2,
},
palette: [declaColor, neutralColor, redColor],
paletteDim: [declaColorDim, neutralColor, redColorDim],
palette: [blueColor, neutralColor, redColor],
paletteDim: [blueColorDim, neutralColor, redColorDim],
targetPhysicsDeltaTimeInSeconds: 1 / 200,
inViewAreaSize: 1920 * 1080 * 4,
scoreboardHalfWidthPercent: 50,