I played this game at school on the Macs during breaks, but I can't remember the name. I played it in 2000, so it must predate that. I imagine it was much earlier. It was in all black-and-white, obviously. The computers only had games like that and Brick Attack.
The game was honestly very similar to Shadowgate, which is the only game I've ever found remotely similar while trying to find it. Very similar UI, but of course it was back then. It was first person and had point-and-click elements. It had a turn-based RPG combat system as well, I think. I might be misremembering that but I doubt it. You were able to fight a dragon.
The gameplay had you basically choosing to move in whatever compass directions to go down a series of hallways and find items that would allow you to solve puzzles point-and-click style. I honestly don't remember many puzzles. You could follow a progressively darker hallway where you would eventually fall into a pit and die if you didn't light it. At some point you got an enchanted javelin which I assumed would come back if you threw it but I'm pretty sure just had a limited number of uses in actuality.
I remember a very specific screen early on, where you were next to a window, and the game would caution you with something along the lines of "You better get a good look, because it may be the last time you see the sun for a long, long time." I always thought that was funny because you could walk back to the window whenever you wanted.
Now that I think on it further, it might have been the equivalent of an indie game, at the time. I remember when you started the game, it would say if you were stumped, you could mail the guy $10 in an envelope to get a map of the game. My friends and I always wanted to do that but were never sure it was worth it, or if it would just be bullshit.