summaryrefslogtreecommitdiff
path: root/src/engine/entities/LambdaFactory.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/entities/LambdaFactory.ts')
-rw-r--r--src/engine/entities/LambdaFactory.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/entities/LambdaFactory.ts b/src/engine/entities/LambdaFactory.ts
index a0f5749..9ad1398 100644
--- a/src/engine/entities/LambdaFactory.ts
+++ b/src/engine/entities/LambdaFactory.ts
@@ -1,6 +1,11 @@
import {
+ Failure,
IMAGES,
+ LambdaSave,
+ LambdaTransformSound,
Miscellaneous,
+ ModalOpen,
+ SOUNDS,
SPRITE_SPECS,
SpriteSpec,
Sprites,
@@ -144,6 +149,8 @@ export class LambdaFactory extends Entity {
const text = this.getComponent<Text>(ComponentNames.Text);
text.text = spawner.spawnsLeft.toString();
this.addComponent(text);
+
+ SOUNDS.get(LambdaTransformSound.name)!.play();
}
private openCodeEditor() {
@@ -185,6 +192,8 @@ export class LambdaFactory extends Entity {
canvas,
closeButton,
};
+
+ SOUNDS.get(ModalOpen.name)!.play();
}
private refreshCodeEditorText(text: string) {
@@ -239,6 +248,7 @@ export class LambdaFactory extends Entity {
});
syntaxError.innerText = e.message;
+ SOUNDS.get(Failure.name)!.play();
return;
}
@@ -250,6 +260,7 @@ export class LambdaFactory extends Entity {
closeModal();
canvas.focus();
+ SOUNDS.get(LambdaSave.name)!.play();
}
private onHighlight(direction: Direction) {