Draconar Posted June 29, 2015 Share Posted June 29, 2015 I see that phaser hasn't touched AI and the like, therefore I want to ask what you guys use to create intelligent behavior in JS games? To illustrate the point, I'm creating a sports game (soccer) and I want to the other agents in the game to be able to hold their positions, do "real" passes and shoot with some intent. Any ideias? Link to comment Share on other sites More sharing options...
drhayes Posted June 29, 2015 Share Posted June 29, 2015 I've been well served by using state machines. Here's the library I'm using now and here's the library I'm going to switch to. I like them both a lot; the second one has a more concise API. I bet you're going to want to look at steering behaviors for your soccer game AI. Check out this book for lots of great examples. Link to comment Share on other sites More sharing options...
Recommended Posts