Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Really enjoyed this and am trying to make something similar myself. How did you go about keeping track of entity positions and the like so that enemies wouldn't run into each other? 

I've been trying to use a dictionary of Vector3Ints as keys and a custom Entity class as values. Perhaps you found a better approach to this?

(+1)

Glad you liked it. There is a 2D Boolean array to keep track which grids are occupied and which are not. When player or an enemy start moving to a next floor grid and if it is non-occupied, it becomes occupied and the previous grid becomes non-occupied. Otherwise movement is prevented. This works pretty well, but I have been thinking about some different approach which allows enemies to hurt each other.