Cocos2d-JS v3.10 && Protocol Buffer v2.5.0 solution.
C++ JavaScript Protocol Buffer Python CMake Shell Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CocosProtobuf
Demo
Protobuf-2.5.0
README.md

README.md

CocosProtoBuf

This demo is based on Cocos2d-JS v3.10 && Protocol Buffer v2.5.0.

A related book is here on GitBook.

Folder Structure

Demo (cpp/java/python/js)

  • Create Instance
  • Serialize to String
  • Serialize to File
  • Parse from String
  • Parse from File
  • Dump GameInfo Instance
  • Relection Dump Message
  • Relection Generate Message
  • Load Proto
  • Encode / Decode / js
  • Excel .xls to ProtoBuf .bin / Python

Protobuf-2.5.0

Generated libs

CocosProtobuf

Using Protobuf with Cocos2d-JS in JSBinding

  • Send Data from C++
  • Receive Data from C++
  • Send Data from javascript
  • Receive Data from javascript