Current building status
![linux-gcc](https://github.com/sniper00/moon/actions/workflows/linux-gcc.yml/badge.svg)
![linux-clang](https://github.com/sniper00/moon/actions/workflows/linux-clang.yml/badge.svg)
![macos-clang](https://github.com/sniper00/moon/actions/workflows/macos-clang.yml/badge.svg)
![windows-vs2022](https://github.com/sniper00/moon/actions/workflows/windows-vs2022.yml/badge.svg)
![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sniper00_moon&metric=alert_status)
Moon
Moon is a lightweight game server framework based on the actor model. One worker thread can have one or more actors (services), which communicate with each other through message queues. There are many features for game server development:
- The architecture is simple, and the source code is concise and easy to understand.
- Cross-platform (Windows, Linux, MacOS)
- Uses ASIO for scheduling
- Uses Lua for logic scripting
- Optimized networking
- Tcp
- Udp/Kcp
- Websockets
- Http
- Asynchronous based on Lua coroutines
- Coroutine-socket
- Timer
- Inter-service communication
- Inter-process communication
- Redis/PostgreSQL/Mongodb/Mysql async client driver
- High performance and optimized Lua Json library
- Lua protobuf library
- Lua filesystem
- Recast Navigation
- Lua zset library for ranklist
OverView
Framework
![image](https://github.com/sniper00/MoonNetLua/raw/master/image/01.png)
Community
-
![Gitter](https://badges.gitter.im/undefined/community.svg)
-
QQ group: 543833695
Documents
https://github.com/sniper00/moon/wiki
Quick Start
Download Pre-Built Binaries
# Run test
./moon test/main_test.lua
# Run script in the example directory, e:
./moon example/example_timer.lua
# This is a guessing game, example/GuessGame.md
./moon example/main_game.lua
Demo
Build
-
Make sure your compiler(vs2022 17.5+, gcc 9.3+, clang 9.0+) support C++17 or Install C++17
Compiler.。
-
Clone source code
git clone https://github.com/sniper00/moon.git
- Build
- windows run
build.bat
- linux run
./build.sh
- macOS run
./build.sh
If you want modify premake5 script, See detail build steps
Use case
若您的项目使用了moon,欢迎联系作者,作者很乐意把您的作品展示出来.
Friend Open Source