Uploaded March 2020 | Updated September 2026, 3 weeks ago
How Many AI Agents can JavaScript Handle?
Inspired by Brackeys's video "How Many AI Agents can Unity Handle?", I decided it'd be fun to try a JavaScript version, with a bunch of work thrown at a* optimization, generation JavaScript optimization, and a little (lot) of cheating.
I walk through the steps of getting this all working, starting with a maze generation implementation, and an a* implementation. I reuse the code from my boids implementation but with a path following behaviour added, and finally we look at a* optimization and general javascript optimization to improve the framerate.
Github: github.com/simondevyoutube
Credits:
Brackeys' Video: youtube.com/watch?v=G9Otw12OUvE
XCom2: youtube.com/channel/UC_h2l2T4FrJzfdMF6RbOrcQ
Civ6: youtube.com/channel/UCWj7XnnfbKHGVnZ8iSoETSQ
Dragon Age: youtube.com/user/dragonageofficial
Starcraft2: youtube.com/user/starcraft
How Many AI Agents can JavaScript Handle?
Inspired by Brackeys's video "How Many AI Agents can Unity Handle?", I decided it'd be fun to try a JavaScript version, with a bunch of work thrown at a* optimization, generation JavaScript optimization, and a little (lot) of cheating.
I walk through the steps of getting this all working, starting with a maze generation implementation, and an a* implementation. I reuse the code from my boids implementation but with a path following behaviour added, and finally we look at a* optimization and general javascript optimization to improve the framerate.
Github: github.com/simondevyoutube
Credits:
Brackeys' Video: youtube.com/watch?v=G9Otw12OUvE
XCom2: youtube.com/channel/UC_h2l2T4FrJzfdMF6RbOrcQ
Civ6: youtube.com/channel/UCWj7XnnfbKHGVnZ8iSoETSQ
Dragon Age: youtube.com/user/dragonageofficial
Starcraft2: youtube.com/user/starcraft










