Refactor backend to use commands
This commit is contained in:
parent
503c99cb1f
commit
7cf33b9f1a
18 changed files with 144 additions and 156 deletions
|
|
@ -33,7 +33,7 @@ export class PlanetView extends PlanetBase {
|
|||
this.ownershipProgress.className = 'ownership';
|
||||
}
|
||||
|
||||
private step(deltaTimeInSeconds: number): void {
|
||||
private step({ deltaTimeInSeconds }: StepCommand): void {
|
||||
this.shape.randomOffset += deltaTimeInSeconds / 4;
|
||||
this.shape.colorMixQ = this.ownership;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue