Also implemented windows fully (as fully as any other
barrier type, that is), so now the player can go through a window to get to the
next room. It's identical to a door at
the moment. I'm pretty sure I can find a
better way to put the barrier descriptions in.
Right now it's copy-pasting almost identical code a ton of times,
varying for direction. Hopefully I'll
figure that out before the 18 if statements balloon into 300.
Also a little code cleanup.
Sometimes I wonder what I was thinking when I have a five line block of
code with a variable definition and an if statement that can simply be reduced
to one return statement.
No comments:
Post a Comment