badvision / lawless-legends

Open-source code and assets from Lawless Legends and its supporting tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Walking through wall corners creates problems in WIP

andrewschultz opened this issue · comments

  1. god mode
  2. 14 10 8 14
  3. go forward a few times, then backwards. You can run through the corners and back, which creates a huge hole in the puzzles.

It looks like we need a small additional check before moving diagonally between squares.

if x(before) != x(after) and y(before) != y(after):
if x(before), y(after) is impermeable and x(after), y(before) is impermeable, reject the command.

The alternative would be to completely recreate a currently drawn map that has several dead ends that touch each other at corners. I'd love to see this feature added, as it'd allow for more complex maps in smaller areas and ultimately save disk space as opposed to just having the player expand maps to avoid this potential warp.

This isn't strictly the editor's priority, but there might be cases when we want to allow a sneak through. But they're isolated enough the programmer would probably just want to write a script for those specific squares to describe why. So I'll close this, and if someone comes up with a more viable test case why the editor should contain the option to jump through touching wall corners, they can reopen.