Improve agent agression

This commit is contained in:
Andras Schmelczer 2023-05-27 20:44:05 +01:00
parent f7d24a22b6
commit a95a5f83a3
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
8 changed files with 66 additions and 92 deletions

View file

@ -188,15 +188,7 @@ export default class GameLoop {
].forEach((pipeline) =>
pipeline.setParameters({
time,
evenGenerationAggression:
this.gameRules.nextGenerationId % 2
? -1
: this.gameRules.nextGenerationAgression,
oddGenerationAggression:
this.gameRules.nextGenerationId % 2
? this.gameRules.nextGenerationAgression
: -1,
nextGenerationId: this.gameRules.nextGenerationId,
isNextGenerationOdd: this.gameRules.nextGenerationId % 2,
deltaTime,
canvasSize: this.canvasSize,
brushColor: GamePresentation.getGenerationColor(