The player can see their own head and feel their own feet
This commit is contained in:
parent
a757ea6667
commit
ba529ec3af
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue