3 ms·
It would be great if you could view the source for the existing functions such as getNearest(), It would save much time reimplementing modified versions of them
by Robadob 13y ago
It would be great if you could view the source for the existing functions such as getNearest(), It would save much time reimplementing modified versions of them. For example if I wanted to make a getNearestArcher() method to enable my archers to focus the enemy nearest enemy archer at certain points, I'd take the existing function and just add an additional type check rather than writing my own function from scratch.
These types of games are really interesting and having this one available in the browser gives it a significant advantage over others such as http://aisandbox.com/ http://aisandbox.com/ which when tried was a little too complicated to setup for casual usage.
- Robadob 13y ago(AISandbox was available for download at one time, but it appears they have since gone back into a semi-closed Alpha)
- schmatz 13y agoHi @Robadob, great suggestion, thanks for pointing this out! You can actually view the code for these functions in the Level Editor, but obviously it would be much more awesome to have a way to view them from inside the game. We have to strike a balance with the UI to make the learning curve less steep while at the same time providing a wide range of features. I'll bring this up and see what the rest of the team thinks.