Code Monkey home page Code Monkey logo

mserver's Introduction

MServer

Mini Distributed Game Server(aka Mserver) is a lightweight game engine. It is designed to be flexible, efficient and easy to use. The engine core is written in C++ for high performance, and the game logic code is implemented in Lua scripts to ensure stability, reduce development costs, Increase development efficiency. The engine provides a lot of components commonly used in game development, such as navigation, pathfinding, database, etc. Developers can focus on game logic development instead of re-implementing these components. The engine is flexible and expandable. It can be deployed as a multi-process to adapt to MMO-type games, and can also be deployed as a single process for small games.

Dependencies

  • Linux/Windows 10(>=Version 2004)
  • GCC (c++17 or above,check it here)
  • MariaDB
  • MongoDB
  • Lua (>=5.3)
  • protobuf

Build & Usage

See it at Wiki

Features

  • Hotfix
  • Async log
  • RPC
  • Lua OOP development
  • Scene(map、navigation、aoi)
  • AC algorithm words filter
  • Crypto(md5、base64、sha1、uuid ...)
  • JSON、XML serialize/deserialize
  • Network(Tcp、Http、websocket), with SSL and ipv6 support
  • Protocol auto serialize/deserialize(protobuf、FlatBuffers)
  • Async and coroutine sync DB operation for MariaDB、MongoDB

Architecture

draw by http://asciiflow.com/

                                ┌───────────────────────────┐
                                │    Lua Game Application   │
                                ├───────────────────────────┤
                                │        Lua C++ Driver     │
                                ├───────────────────────────┤
                                │        C++ Component      │
                                ├─────────────┬─────────────┤
                                │ Timer       │ RPC         │
                                ├─────────────┼─────────────┤  thread    ┌────────────────┐
                                │ Protobuf    │ Flatbuffers │◄──────────►│ Log Disk Files │
                                ├─────────────┼─────────────┤            └────────────────┘
                                │ Navigation  │ AOI         │
                                ├─────────────┼─────────────┤  thread    ┌────────────────┐
                                │ Crypto      │ JSON/XML    │◄──────────►│ MariaDB Server │
                                ├─────────────┼─────────────┤            └────────────────┘
                                │ WorldFilter │             │
  ┌────────────────┐  thread    ├─────────────┼─────────────┤  thread    ┌────────────────┐
  │ Client/Console │◄──────────►│ Socet       │ SSL         │◄──────────►│ MongoDB Server │
  └────────────────┘            └─────────────┴─────────────┘            └────────────────┘

Note

mserver's People

Contributors

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