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

@ -24,6 +24,15 @@ const look: ActionTerm = {
precedesConstants: [],
};
const move: ActionTerm = {
action: actions.move,
canPrecedeVariable: true,
category: "action",
constant: "go",
precedesCategories: [],
precedesConstants: [],
};
const take: ActionTerm = {
action: actions.pickUpItem,
canPrecedeVariable: true,
@ -45,6 +54,7 @@ const use: ActionTerm = {
export const terms = {
[inventory.constant]: inventory,
[look.constant]: look,
[move.constant]: move,
[take.constant]: take,
[use.constant]: use,
};