Open-source game server frameworks suitable for Cocos Creator

More and more Cocos Creator developers are starting to create online games.

Today, I will organize which open-source server frameworks are suitable for use with Cocos Creator.

TSRPC

image

TSRPC is a full-stack RPC framework designed specifically for TypeScript, which has been verified by tens of millions of users and is suitable for HTTP API, WebSocket real-time applications, NodeJS microservices, etc.

Using TSRPC, you can easily build a game server with a strong load capacity.

Colyseus

image

Colyseus is a multiplayer game network service framework based on NodeJS + TypeScript, which provides many client SDKs and can easily work with Cocos Creator.

Moreover, on the Cocos Store, there is also a Colyseus SDK for everyone to integrate with one click.

In addition, the Colyseus official also provides hosting services, making it very simple for you to deploy, and you don’t have to worry about CCU, DAU pressure.

cherry

NetEase once open-sourced a particularly good network framework based on NodeJS, Pomelo, which received more than 10,000 stars on Github, but it has been discontinued.

Later, the Pinus (the open-source version of Pomelo) and Pitaya (the Golang version of Pomelo) appeared.

But Pinus is almost discontinued, and the update frequency of Pitaya is not very high.

Finally, I found this Golang framework based on the Actor concurrency model, Cherry, and it supports the Pomelo protocol.

Cherry-related positions have already appeared on recruitment websites. it‘s worth you to pay attention.

skynet

image

skynet is a lightweight actor model distributed server framework built with c and Lua.

Using skynet, you can easily build an efficient and stable game server.

I have participated in two projects (an FPS and an ARPG) that have used skynet, and they proved that skynet is very handy.

The downside is that the ecosystem of the Lua language is very weak, and many things need to be built by yourself.

Plus, development can only be done on Linux. If you want to develop on Windows, you need to use a virtual machine software.

If you are familiar with Lua or the client logic is written in the Lua language, skynet is a good choice.

ioGame

This is a very practical Java game server solution, and the author has written nearly 300,000 words of instructions.

But it may be low-key publicity, and the number of stars is not high. Friends who like Java can try it.

Several of my friends’ companies use ioGame for their Java game servers.

In conclusion

For the choice of server framework, I suggest choosing according to the following priority:

  • If there is a traditional, stable, and satisfactory solution, use it first.
  • Prioritize those that are still being updated and have many users
  • Prioritize distributed, scalable ones
  • Prioritize compiled languages (forget PHP/LUA/PYTHON)
  • Prioritize the same language for front and back ends

I hope the above content can help the Cocos game developers in need, and I also hope that the developers’ projects can go smoothly and be successfully launched.

Good luck, see you!

1 Like