From de4f3fd2fe45478ffabc84f055592e11b119d0a4 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 11 Mar 2024 16:35:51 -0600 Subject: prettier, fix assets and css --- src/engine/entities/FunctionApplication.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/engine/entities/FunctionApplication.ts') diff --git a/src/engine/entities/FunctionApplication.ts b/src/engine/entities/FunctionApplication.ts index 175534c..a266941 100644 --- a/src/engine/entities/FunctionApplication.ts +++ b/src/engine/entities/FunctionApplication.ts @@ -62,8 +62,8 @@ export class FunctionApplication extends Entity { y: 0, }, dimension, - 0 - ) + 0, + ), ); this.addComponent(new Grid(gridPosition)); @@ -76,8 +76,8 @@ export class FunctionApplication extends Entity { { x: 0, y: 0 }, dimension, FunctionApplication.spriteSpec.msPerFrame, - FunctionApplication.spriteSpec.frames - ) + FunctionApplication.spriteSpec.frames, + ), ); this.addComponent(new Colliding(this.handleCollision.bind(this))); @@ -100,7 +100,7 @@ export class FunctionApplication extends Entity { const gridSystem = game.getSystem(SystemNames.Grid); const fail = () => { entityGrid.movingDirection = gridSystem.oppositeDirection( - entityGrid.previousDirection + entityGrid.previousDirection, ); entity.addComponent(entityGrid); @@ -109,10 +109,10 @@ export class FunctionApplication extends Entity { }; const applicationTerm = this.getComponent( - ComponentNames.LambdaTerm + ComponentNames.LambdaTerm, ); const functionTerm = entity.getComponent( - ComponentNames.LambdaTerm + ComponentNames.LambdaTerm, ); const newCode = applicationTerm.code.replace("_INPUT", functionTerm.code); @@ -128,7 +128,7 @@ export class FunctionApplication extends Entity { const { dimension } = gridSystem; const nextPosition = gridSystem.getNewGridPosition( grid.gridPosition, - entityGrid.previousDirection + entityGrid.previousDirection, ); let applicationResultingEntity: Entity | null = null; // this should be its own function @@ -150,7 +150,7 @@ export class FunctionApplication extends Entity { game.removeEntity(entity.id); if (applicationResultingEntity) { const grid = applicationResultingEntity.getComponent( - ComponentNames.Grid + ComponentNames.Grid, ); grid.movingDirection = entityGrid.previousDirection; applicationResultingEntity.addComponent(grid); -- cgit v1.2.3-70-g09d2