-
Notifications
You must be signed in to change notification settings - Fork 6
/
README
30 lines (14 loc) · 1.31 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pygoap v.3
requires python 2.x
PyGoap is a small library for designing AI in python. The basic library is based off of a well-known idea of using graph searches to to create realistic agents in real-time. Behavior is determined in real-time and is extremely open ended and well suited for emergent behaviors.
Agents, or npcs, can be programmed very simply with an easy to understand api. Check the 'npcs' folder and read through actions.py to get an idea of how it works.
This library is not complete, but is working as-is. The demo gives you a simple diagram of the game world and the debugging information near the bottom lets you know what is going on 'in the heads' of the agents. Note: the demo requires pygame.
I've build AI Agents around the concept of Actions and ActionBuilders.
Actions can be subclassed from a few different action types.
ActionBuilders will search a blackboard and return a list of actions that can be performed.
If you are unfamiliar with GOAP, I invite you to do some research online, it may help you to understand this module.
you can watch it work by running "test.py".
many thanks to opengameart.org for providing and hosting the tileset used in the project. tiles for the map can be found at:
http://opengameart.org/content/worldmapoverworld-tileset
under the CC-BY 3.0 license.
have fun.