From 0b471c8f0e2a945d1d35af4a3570503ee94aa894 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 17 Aug 2018 09:55:37 -0400 Subject: [PATCH] Squashed some commits because Fen made an oops again --- feast.css | 3 +++ feast.html | 10 +--------- feast.js | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/feast.css b/feast.css index 2e66f07..f90515d 100644 --- a/feast.css +++ b/feast.css @@ -141,6 +141,9 @@ button { overflow: auto; } +.log-entry-padded { + margin: 50px 0px 0px 0px; +} .stats { float: right; flex: 1; diff --git a/feast.html b/feast.html index d2b5de9..27e1ae7 100644 --- a/feast.html +++ b/feast.html @@ -50,15 +50,7 @@
-
- Welcome to Feast v0.2.8 -
-
-   -
-
- It's early morning, and you feel like eating a bunch of people -
+
diff --git a/feast.js b/feast.js index 0a3c924..b788328 100644 --- a/feast.js +++ b/feast.js @@ -23,6 +23,7 @@ let deaths = []; let respawnRoom; let noLog = false; +let logPadLine = undefined; let MIDNIGHT = 0; let MORNING = 21600; @@ -313,6 +314,9 @@ function renderTime(time) { function move(direction) { if (noLog) clearScreen(); + else + clearLogBreak(); + let target = currentRoom.exits[direction]; if (target == null) { alert("Tried to move to an empty room!"); @@ -372,6 +376,8 @@ function start() { world = createWorld(); currentRoom = world["Bedroom"]; respawnRoom = currentRoom; + update(new Array(50).fill(newline)); + update(["Welcome to Feast."]); moveTo(currentRoom,""); updateDisplay(); } @@ -479,9 +485,17 @@ function clearScreen() { function update(lines=[]) { let log = document.getElementById("log"); + + for (let i=0; i