Giter Club home page Giter Club logo

h5game's Introduction

h5game

io类型h5游戏,客户端使用ts版cocos creator。服务器使用golang actor分布式框架,可伸缩部署。 demo试玩地址

客户端依赖

  • cocos creator 1.8

服务器源码依赖

go get github.com/AsynkronIT/protoactor-go  
go get github.com/gorilla/websocket
go get github.com/go-redis/redis
go get github.com/magicsea/ganet

==另外依赖protobuf,需要科学上网下载,没条件的下载我网盘里的 google库==

服务器运行

  • 安装数据库redis
  • 编译go install Server
  • 配置server/bin/config.json是数据库地址、服务器集群的配置地址
"redis":{
		"addr":"127.0.0.1:6379",//redis地址
		"password":"1111",//redis密码,未设密码可不填
		"poolsize":10,
		"dbs":[0,1,2,3,4]
	},

"proto":"json",//消息参数协议打包方式,支持protobuf,json
  • 启动
- windows 执行 StartSingleServer.bat(单进程方式) 或者 StartMultiServer.bat(多进程方式)
- linux 执行./run.sh start

TODO:

  • 登录、聊天、个人信息修改、基本战斗
  • behavoior接入
  • tcp,websocket协议兼容。pb,json可选。
  • 移动降低发包,客户端平滑

QQ群:285728047

h5game's People

Contributors

magicsea avatar

Stargazers

 avatar

Forkers

helojo kankan1987

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.