[OPEN SOURCE] Multiplayer 3D RPG Using Colyseus

Thanks, I will look into that.

I spent a while trying to integrate YUKA to use for the enemy AI with no success as it all become so cimplicated, so I started to work on adding my own enemy AI and after a day work, I’m very happy with the result:

  • default is all enemies wanders around
  • at all times, I have a function that determines the closest player for each entity
  • if a player get’s in a certain range, it starts chasing that player until either
    – it gets in range, an then starts attacking player or
    – player manage to get away and the enemy returns to wandering

It was the first time doing “AI”, and I enjoyed it very much, and it’s great to see enemies coming alive :slight_smile:




even with 100 entities and recording a video, framerate is still rather good :slight_smile:

4 Likes