From 8f214e93bfc1fdb29ea99b910bac754b28f7384c Mon Sep 17 00:00:00 2001 From: Talon Date: Wed, 10 Nov 2021 14:20:50 +0100 Subject: [PATCH] Disable first description by default --- doc/area-design.md | 8 ++++++++ doc/object-design.md | 0 doc/puzzle-design.md | 0 src/engine/output.js | 3 ++- src/engine/room.js | 2 +- src/game/rooms/tunnel2.js | 6 +++--- 6 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 doc/area-design.md create mode 100644 doc/object-design.md create mode 100644 doc/puzzle-design.md diff --git a/doc/area-design.md b/doc/area-design.md new file mode 100644 index 0000000..f4a7f52 --- /dev/null +++ b/doc/area-design.md @@ -0,0 +1,8 @@ +# Insect lair + +## start + +A small alcove + +### first + diff --git a/doc/object-design.md b/doc/object-design.md new file mode 100644 index 0000000..e69de29 diff --git a/doc/puzzle-design.md b/doc/puzzle-design.md new file mode 100644 index 0000000..e69de29 diff --git a/src/engine/output.js b/src/engine/output.js index dc4f153..389951a 100644 --- a/src/engine/output.js +++ b/src/engine/output.js @@ -15,9 +15,10 @@ export default class Output { string.split("\n").forEach((line) => { node.appendChild(document.createTextNode(line)); node.appendChild(document.createElement("br")); + // this.tts.speak(line, false); }); this.history.appendChild(node); - // this.tts.speak(string); + this.tts.speak(string); } play(file) { diff --git a/src/engine/room.js b/src/engine/room.js index e274749..9001711 100644 --- a/src/engine/room.js +++ b/src/engine/room.js @@ -3,7 +3,7 @@ export default class Room { this.id = "room"; this.title = "A room"; this.description = "You see nothing special"; - this.firstDescription = "As you walk into the room, you notice nothing special"; + this.firstDescription = ""; this.objects = []; this.exits = new Map(); this.enterCallback = null; diff --git a/src/game/rooms/tunnel2.js b/src/game/rooms/tunnel2.js index 88f1ead..0a3248e 100644 --- a/src/game/rooms/tunnel2.js +++ b/src/game/rooms/tunnel2.js @@ -3,9 +3,9 @@ import RoomBuilder from "../../engine/builders/room"; export default new RoomBuilder() .withID("tunnel_2") .withTitle("A long, winding tunnel") -.withFirstDescription( - `You step out from your hidy hole into a thin, winding tunnel. The walls and ceiling appear to get thinner and thinner, space slowly dwindling away to nothing.` -) +// .withFirstDescription( + // `You step out from your hidy hole into a thin, winding tunnel. The walls and ceiling appear to get thinner and thinner, space slowly dwindling away to nothing.` +// ) .withDescription( `A tunnel that ends in a bowl shape.` )