Thanks for trying it out!
several bugs: the player can start running to the left, only to see a wide open corridor with nothing interesting happening.
A few people have pointed this out, I should just put a wall to the left of the start and be done with it.
also sometimes after i die and autorestart, score resets to 0 and doesn't increase as i move, or i move as if one arrow key is stuck. i couldn't reliably reproduce these two.
Restart should take you back to the beginning of the level, the first one starts at 0 and the second at 4000 (indicated by the green line). The input stuff is fairly messed up across reset, I wasn't able to come up with a satisfactory way of handling it and still just using the event loop.
EDIT: played it to the end. it's too short. more predrawn levels and/or endurance mode with sparse randomized levels would be nice.
I think that with a level editor it'd be easier for me to put together levels, but right now I just don't see much more to be done with it. I hadn't considered random levels, but that does sound like a cool idea.
re: facing: what if the player could only face east, northeast and southeast? such restriction urges him to move right but lets him look around a bit
With the viewing angle as wide as it is you do get a lot of exposure in whatever direction you're facing, but maybe some finer angles for diagonal movement would be nice. I'd thought it couldn't be done with my simple geometry system (only horizontal and vertical edges) but it should really just work the same way.
If I revisit it I'll keep your suggestions in mind, thanks again!