Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Donjon

A topic by razveck created Feb 29, 2020 Views: 276 Replies: 3
Viewing posts 1 to 4
(+1)


Started late, but here I am. Got some basic dungeons working, although some rooms are still left unconnected  sometimes. Not the best implementation of a dungeon generator since it was my first time doing a room+corridor setup and I'm figuring it out as I go. Going to call it a day and work on the wonky corridors tomorrow.


Day 2

Rewrote the whole generator algorithm, which now produces much cleaner-looking corridors and ensures all rooms are connected. It was incredibly frustrating because I kept encountering off-by-1 errors and slight misalignments of the grid, etc. Next step is to add a player, a movement system and some walls.


Day 3: Added walls, an entrance and an exit to the next level. Also added a controllable player character and turn-based movement (for now the "AI" just passes the turn after 0.2s). Tomorrow: adding enemies and AI


Day 4.5 (yesterday): Added enemies, pathfinding, line of sight and a simple AI. Enemy (white) will patrol a room (path is yellow) until it sees the player (red), upon which it will pursue the player. Breaking line of sight sends the enemy back to patrol. I realised after the fact that the enemy initially saw the player through the wall... back to work I guess