GridVids
Sign in with YouTube

How Many AI Agents can JavaScript Handle?

SimonDev Mar 24, 2020 17:26
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

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: https://github.com/simondevyoutube/ Credits: Brackeys' Video: https://www.youtube.com/watch?v=G9Otw12OUvE XCom2: https://www.youtube.com/channel/UC_h2l2T4FrJzfdMF6RbOrcQ Civ6: https://www.youtube.com/channel/UCWj7XnnfbKHGVnZ8iSoETSQ Dragon Age: https://www.youtube.com/user/dragonageofficial Starcraft2: https://www.youtube.com/user/starcraft
Science & Technology
#pathfinding #ai pathfinding #stress test #how many ai agents #game development #3d game development #javascript game development #a* javascript #a* implementation #a* optimization #javascript optimization #a* search algorithm #a star optimization #a star implementation #javascript pathfinding algorithm #boids #javascript boids #path following #pathfinding javascript #javascript tutorial #simondev #maze generator javascript #maze generation javascript #maze generation