Added line-of-sight using a bresenham ray to check nothing solid blocks the view
Added A* pathfinding so monsters route around walls to reach you
Monsters keep chasing for a few turns after losing sight, so ducking around a corner won’t save you
A* was a pain. Rust’s BinaryHeap is a max-heap, but A* needs the smallest cost first, so it kept finding crazy paths. Flipping the ordering fixed it and monsters got good at cornering me
Added loot to make going deeper worth it. Potions (healing, strength, vitality), scrolls (teleport, magic mapping, lightning, enchant), weapons, armor, and gold
Added an inventory to carry it all
Added spawn tables that put more and nastier stuff deeper down
Zapping the nearest monster with a lightning scroll across a room feels great
Made a whole file just for the funny one-liners the game throws at you. Best part of the day
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.