The player can see their own head and feel their own feet

This commit is contained in:
Juhani Krekelä 2019-06-28 23:35:17 +03:00
parent a757ea6667
commit ba529ec3af
1 changed files with 4 additions and 0 deletions

View File

@ -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
-- ⌜^⌝
-- <o>
@ -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
-- <x>
-- v