GithubHelp home page GithubHelp logo

fengshibang / snake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from actfuns/snake

0.0 0.0 0.0 68.99 MB

白娘子(skynet)

Makefile 0.49% Shell 0.88% C 5.31% C++ 0.74% Lua 33.88% CSS 0.05% HTML 4.48% PureBasic 0.13% Batchfile 0.01% Python 50.43% Roff 0.81% VBScript 0.01% PLSQL 0.05% Tcl 2.64% F# 0.01% C# 0.01% GLSL 0.01% Forth 0.01% JavaScript 0.01% M4 0.10%

snake's Introduction

需要的系统是 CentOS 7.2

★关闭防火墙 systemctl stop firewalld.service systemctl disable firewalld.service

1安装宝塔

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

Nginx1.1.4 php5.4

mongodb 这个在软件管理

mongodb安装好后复制下面的

mongo use admin db.createUser({user:"root",pwd:"YXTxsaj22WSJ7wTG",roles:[{role:"root",db:"admin"}]}) exit

2.上传snake.zip 到home 不是根目录

解压snake.zip

3.上传pymongo-3.5.1.tar.gz到home 解压pymongo-3.5.1.tar.gz

复制下面的

tar -zxvf pymongo-3.5.1.tar.gz pip install DBUtils cd /home/pymongo-3.5.1 python setup.py install

pip install setuptools

4.大家先在电脑上解压sh.tgz 然后把解压的文件拖进home/snake目录

all_start.sh bs_kill.sh bs_run.sh cs_kill.sh cs_run.sh gs_kill.sh gs_run.sh Makefile open_gate.sh 共9个

5.chmod -R 777 /home

放全部端口 1:65535

启动游戏 cd /home/snake ./all_start.sh

关闭游戏 pkill skynet

客户端

解包客户端里面的script,修改CServerPhoneCtrl.lua里面ID1001开头的就可以了,然后打包回去

snake's People

Contributors

actfuns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.