Describe room exits
This commit is contained in:
4
main.ts
4
main.ts
@ -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.
|
||||
|
Reference in New Issue
Block a user