From 44f619fa1f0bc075d39f45515ebccbea0563e181 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Mon, 12 Mar 2018 09:59:35 -0400 Subject: [PATCH] Added a look button --- feast.html | 2 +- feast.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/feast.html b/feast.html index e86945d..76a8232 100644 --- a/feast.html +++ b/feast.html @@ -53,7 +53,7 @@ - + diff --git a/feast.js b/feast.js index c9cd4b4..961361c 100644 --- a/feast.js +++ b/feast.js @@ -448,4 +448,10 @@ function loadCompass() { dirButtons[SOUTH_EAST].addEventListener("click", function() { move(SOUTH_EAST); }); + + document.getElementById("compass-look").addEventListener("click", look, false); +} + +function look() { + update([currentRoom.description]); }