diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-11 16:35:51 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-11 16:35:51 -0600 |
commit | de4f3fd2fe45478ffabc84f055592e11b119d0a4 (patch) | |
tree | ad2ce3b3e646d2d6bfbccb4b9c8962196a0ea8fe /src/engine/entities/LambdaFactory.ts | |
parent | 32879581e53fae5e684c24b44433172d8375d69e (diff) | |
download | the-abstraction-engine-de4f3fd2fe45478ffabc84f055592e11b119d0a4.tar.gz the-abstraction-engine-de4f3fd2fe45478ffabc84f055592e11b119d0a4.zip |
prettier, fix assets and css
Diffstat (limited to 'src/engine/entities/LambdaFactory.ts')
-rw-r--r-- | src/engine/entities/LambdaFactory.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/engine/entities/LambdaFactory.ts b/src/engine/entities/LambdaFactory.ts index 6f75e90..770c096 100644 --- a/src/engine/entities/LambdaFactory.ts +++ b/src/engine/entities/LambdaFactory.ts @@ -75,7 +75,7 @@ const syntaxErrorDecoration = Decoration.mark({ export class LambdaFactory extends Entity { private static spriteSpec: SpriteSpec = SPRITE_SPECS.get( - Sprites.LAMBDA_FACTORY + Sprites.LAMBDA_FACTORY, ) as SpriteSpec; private codeEditorState: CodeEditorState | null; @@ -99,8 +99,8 @@ export class LambdaFactory extends Entity { width: LambdaFactory.spriteSpec.width, height: LambdaFactory.spriteSpec.height, }, - 0 - ) + 0, + ), ); this.addComponent(new Text(spawns.toString())); @@ -110,8 +110,8 @@ export class LambdaFactory extends Entity { this.addComponent( new GridSpawn( this.spawns, - () => new FunctionBox({ x: 0, y: 0 }, this.code) - ) + () => new FunctionBox({ x: 0, y: 0 }, this.code), + ), ); this.addComponent(new Grid(gridPosition)); @@ -125,15 +125,15 @@ export class LambdaFactory extends Entity { height: LambdaFactory.spriteSpec.height, }, LambdaFactory.spriteSpec.msPerFrame, - LambdaFactory.spriteSpec.frames - ) + LambdaFactory.spriteSpec.frames, + ), ); this.addComponent( new Highlight( (direction) => this.onHighlight(direction), - () => this.onUnhighlight() - ) + () => this.onUnhighlight(), + ), ); } @@ -179,10 +179,10 @@ export class LambdaFactory extends Entity { const codeBox = document.getElementById("code")!; const syntaxError = document.getElementById("syntax-error")!; const canvas = document.getElementById( - Miscellaneous.CANVAS_ID + Miscellaneous.CANVAS_ID, ) as HTMLCanvasElement; const closeButton = document.getElementById( - "close-modal" + "close-modal", ) as HTMLButtonElement; closeButton.addEventListener("click", () => this.saveAndCloseCodeEditor()); |