GithubHelp home page GithubHelp logo

jinlking / h5game Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magicsea/h5game

0.0 0.0 0.0 15.01 MB

io类开房间游戏类型,服务器使用golang,客户端使用cocos creator

JavaScript 63.96% Lua 0.16% Ragel 1.19% TypeScript 12.50% HTML 0.26% Batchfile 0.16% Shell 0.15% Go 21.62%

h5game's Introduction

h5game

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

客户端依赖

  • cocos creator 2.4.0

客户端已知问题:

  • 升级引擎后一些输入框默认显示有问题,需要删了重新摆

  • toggle的改动,导致头像不能显示

服务器源码依赖

已使用go mod管理包。
golang版本1.13。
拉取依赖步骤:
1.进入server/src/Server目录
2.执行go mod tidy

服务器运行

  • 安装数据库redis

  • 进入server目录,执行build.bat编译

  • 配置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 :
    方法1:直接运行bin/server.exe 
    方法2:执行 StartSingleServer.bat(单进程方式)
    方法3:执行 StartMultiServer.bat(多进程方式)
        
    linux :
    执行./run.sh start
    

    TODO:

  • 登录、聊天、个人信息修改、基本战斗

  • behavoior接入

  • tcp,websocket协议兼容。pb,json可选。

  • 移动降低发包,客户端平滑

QQ群:285728047

h5game's People

Contributors

magicsea 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.