Jump to content

AI libraries for Javascript games


Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...