doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
18 lines (17 loc) • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const GameObjectBase_1 = require("../GameObjectBase");
class FrontDoorObject extends GameObjectBase_1.GameObjectBase {
constructor() {
super('door');
this.look = 'The front door is large and heavy. You get so excited when it opens, but have no hope of opening it yourself.';
this.smell = 'The door smells like wood, mixed with the wonderful smells of nature from outside.';
this.lick = 'The front door isn\'t really that tasty.';
this.eat = 'The front door doesn\'t taste good. Don\'t think about how you know that.';
this.think = 'This is the door that mommy and daddy open when they\'re going to take me for a walk!';
this.push = 'The front door is heavy and opens inwards';
this.pull = 'The front door is far too heavy to pull. Besides, it is latched shut.';
this.open = 'You can\'t open the front door! It\'s far too big and you couldn\'t reach the handle with a running start.';
}
}
exports.FrontDoorObject = FrontDoorObject;