From ba529ec3af98c8ef2ba0a61dc691a6f829de0025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Fri, 28 Jun 2019 23:35:17 +0300 Subject: [PATCH] The player can see their own head and feel their own feet --- bundle/main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundle/main.lua b/bundle/main.lua index efa459b..586ddf5 100644 --- a/bundle/main.lua +++ b/bundle/main.lua @@ -154,6 +154,8 @@ function generateVisibilityMap() -- Handle visibility from the head local queue = {} + visibility_map[player_x][player_y] = true + if player_direction == directions.up then -- ⌜^⌝ -- @@ -205,6 +207,8 @@ function generateVisibilityMap() -- Handle "visibility" from the feet local body_x, body_y = getBodyLocation() + visibility_map[body_x][body_y] = true + if player_direction == directions.up then -- -- v