gui, inventory, symmetrical shadowcasting, bugfixes

This commit is contained in:
Llywelwyn 2023-07-07 07:10:44 +01:00
parent 5b7eac3165
commit 986adb6fce
10 changed files with 355 additions and 71 deletions

View file

@ -179,7 +179,7 @@ impl BaseMap for Map {
exits.push((idx - w + 1, 1.45));
}
if self.is_exit_valid(x - 1, y + 1) {
exits.push((idx - w - 1, 1.45));
exits.push((idx + w - 1, 1.45));
}
if self.is_exit_valid(x + 1, y + 1) {
exits.push((idx + w + 1, 1.45));