8000 GitHub - xldeng1203/moon: A cross-platform,lightweight,scalable game server framework written in C++, and suport Lua Script
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from sniper00/moon

A cross-platform,lightweight,scalable game server framework written in C++, and suport Lua Script

Notifications You must be signed in to change notification settings

xldeng1203/moon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moon

一个轻量级的游戏服务器框架,底层采用C++17编写,逻辑层采用Lua脚本。

Dependencies

Bulid

git clone https://github.com/sniper00/moon.git get the Sources

需要使用premake生成工程文件, 下载最新的premake5

The project use of C++17 features, I tested compliers are:

  • GCC 7.2
  • Visual Studio 2017 Community Update 5

Windows Platform:

    premake5.exe vs2017

Linux Platform:

    premake5 gmake
    make
    # Release版
    # make config=release_linux

Example

一个简单的游戏示例

https://github.com/sniper00/BallGame

Echo Example

网络通信和websocket示例

  • 命令行输入 ./moon 1运行服务器
  • 2字节大端表示长度的协议:python 运行echoclient.py 脚本
  • websocket: wesocket_client.html

Redis Client Example

非阻塞redis client, 默认连接 127.0.0.1 6379

  • 命令行输入 ./moon 2

Service Send/Call Message

服务间发送消息示例

  • 命令行输入 ./moon 3
  • 命令行输入 ./moon 4 call示例

Cluster Example

进程间发送消息示例

  • 命令行输入 ./moon 5
  • 命令行输入 ./moon 6

Socket API Example

用Socket API和协程实现的简单HttpServer示例

  • 命令行输入 ./moon 7

QQ交流群543833695

see more

About

A cross-platform,lightweight,scalable game server framework written in C++, and suport Lua Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.9%
  • C 15.7%
  • Lua 5.3%
  • Other 0.1%
0