add ability to move from room to room.

This commit is contained in:
2021-06-01 16:06:18 -07:00
parent 8f6d7e4db4
commit 08ee3d1b5d
8 changed files with 150 additions and 45 deletions

View File

@ -6,7 +6,7 @@ import game from "./data/rooms.ts";
async function main() {
const user = new User(); // for communication with the user
const scene = new Scene(game.map[0]); // the room that player is in.
const scene = new Scene("hall", game.map); // 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.