The rapid development of mobile games meats the needs of the majority of Internet user.The intro-duction of artificial intelligence technology improves the intelligence of the NPC. However ,there is no com-munication capability among the NPC,which greatly reduces the ability of NPC collaborative tasks and the gameplay.In order to solve the problem of NPC′s co-processing capability,the paper proposes a cooperative algorithm based on swarm intelligence. The algorithm increases the co-processing capacity among the NPC , effective solution to the NPC synergy ,and improved gameplay,It is proved the algorithm is feasible in terms of design and time.%人工智能技术的引入提高游戏中NPC的智能程度,但是NPC之间并没有通信能力,这一点极大地减弱NPC协同完成任务的能力,降低游戏的可玩性。针对NPC的协同处理能力问题,提出一种基于群智能的协同算法。该算法增加NPC之间的协同处理功能,有效地解决了NPC协同问题,提高游戏的可玩性,并从设计和时间上证明该算法的可行性。
展开▼