Devlog 4
I added simple enemy AI, and a randomly generated dungeon layout.
The AI was simple, I just made it follow the player and shoot at them if they are in range. Later I want to make them sight based. If they see the player in their line of sight, then they’ll shoot. I’d probably use raycasting for that.
The dungeon layout, I followed a tutorial from youtube by 16BitDev to understand how it works.
Essentially the rooms are generated as rectangles in a certain location, checking if they overlap. Then halls are generated inbetween using a start/stop location.
Theres a few issues with this that I’ll revise tomorrow (or whenever I work on it). Rooms can spawn right next to each other, with one or two walls between, but have no connecting path. I’ll likely set the boundaries so rooms have to be further apart, or if they spawn together, the wall is removed.
I’ll try to work on this if I can, but I’ve been occupied with a programming internship and other hobbies, so cya!