Skip to content

cgc1983/skynet-aoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skynet-aoi

skynet lua aoi 演示项目

本文参照了的项目如下

云风的AOI 项目 GitHub - cloudwu/aoi: Area of Interest Library

小风的项目 GitHub - cloudfreexiao/skynet-aoi: skynet aoi

安装

项目依赖openresty和skynet

安装OpenResty

下载openresty

wget https://openresty.org/download/openresty-1.19.9.1.tar.gz

解压缩

tar -zxvf openresty-1.19.9.1.tar.gz

编译

cd openresty-1.19.9.1 && make && make install

配置环境变量

echo "PATH=/usr/local/openresty/nginx/sbin:$PATH
export PATH" >> ~/.bash_profile

编译skynet

安装依赖

apt-get install readline-dev autoconf

到skynet目录下编译

make linux

安装客户端

安装pipenv环境

client目录下执行

pipenv install

启动

启动apiserver,到apiserver目录下执行

./run.sh

启动gate,到gate目录下执行

./run.sh

启动skynet,到gameserver目录下执行

./run.sh

启动测试客户端

pipenv shell && python main.py

添加机器人

nc 127.0.0.1 8000
start aoitest 10001 12000

About

skynet lua aoi demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published