Describe room exits

This commit is contained in:
2021-05-31 12:12:34 -07:00
parent b134f1849a
commit 8f6d7e4db4
4 changed files with 168 additions and 113 deletions

View File

@ -2,11 +2,11 @@ import Interpreter from "./Interpreter.ts";
import Player from "./Player.ts";
import Scene from "./Scene.ts";
import User from "./User.ts";
import { hall } from "./types.ts";
import game from "./data/rooms.ts";
async function main() {
const user = new User(); // for communication with the user
const scene = new Scene(hall); // the room that player is in.
const scene = new Scene(game.map[0]); // the room that player is in.
const player = new Player(); // the players current state
let running = true; // running flag for the game loop. Stops on false.
let statement = ""; // holds a statement for the user.