Disable first description by default
This commit is contained in:
8
doc/area-design.md
Normal file
8
doc/area-design.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Insect lair
|
||||||
|
|
||||||
|
## start
|
||||||
|
|
||||||
|
A small alcove
|
||||||
|
|
||||||
|
### first
|
||||||
|
|
0
doc/object-design.md
Normal file
0
doc/object-design.md
Normal file
0
doc/puzzle-design.md
Normal file
0
doc/puzzle-design.md
Normal file
@@ -15,9 +15,10 @@ export default class Output {
|
|||||||
string.split("\n").forEach((line) => {
|
string.split("\n").forEach((line) => {
|
||||||
node.appendChild(document.createTextNode(line));
|
node.appendChild(document.createTextNode(line));
|
||||||
node.appendChild(document.createElement("br"));
|
node.appendChild(document.createElement("br"));
|
||||||
|
// this.tts.speak(line, false);
|
||||||
});
|
});
|
||||||
this.history.appendChild(node);
|
this.history.appendChild(node);
|
||||||
// this.tts.speak(string);
|
this.tts.speak(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
play(file) {
|
play(file) {
|
||||||
|
@@ -3,7 +3,7 @@ export default class Room {
|
|||||||
this.id = "room";
|
this.id = "room";
|
||||||
this.title = "A room";
|
this.title = "A room";
|
||||||
this.description = "You see nothing special";
|
this.description = "You see nothing special";
|
||||||
this.firstDescription = "As you walk into the room, you notice nothing special";
|
this.firstDescription = "";
|
||||||
this.objects = [];
|
this.objects = [];
|
||||||
this.exits = new Map();
|
this.exits = new Map();
|
||||||
this.enterCallback = null;
|
this.enterCallback = null;
|
||||||
|
@@ -3,9 +3,9 @@ import RoomBuilder from "../../engine/builders/room";
|
|||||||
export default new RoomBuilder()
|
export default new RoomBuilder()
|
||||||
.withID("tunnel_2")
|
.withID("tunnel_2")
|
||||||
.withTitle("A long, winding tunnel")
|
.withTitle("A long, winding tunnel")
|
||||||
.withFirstDescription(
|
// .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.`
|
// `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(
|
.withDescription(
|
||||||
`A tunnel that ends in a bowl shape.`
|
`A tunnel that ends in a bowl shape.`
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user