Cocos2d-JS jsdoc


Write well formatted comment && Generate a pretty online document for cocos2d-js game project.

Related Skills

  • javascript
  • node.js
  • python
  • html
  • css

jsdoc && cocos2d-js Comment Specification


Running && Logging Cocos2d-JS Game on Android Emulator


Compiler && Install && Run && Debug Logging cocos2d-js game on Android Emulator without using any heavy IDE such as Eclipse Android Studio and simplify && minimize the installation requirements && process.


  • cocos2d-js v3.10
  • Mac OS X
  • android-ndk-r9d
  • Android 4.4.2 (API 19)


Cocos Protocol Buffer Memo

This is not a tutorial but a learning memo on using Protobuf v2.5.0 in Cocos2d-JS v3.10.

Main Content

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


Generated libs


Using Protobuf with Cocos2d-JS in JSBinding
– Send Data from C++
– Receive Data from C++
– Send Data from javascript
– Receive Data from javascript

A complete project can be found here on GitHub.


Work Collection

Updated 2016.04

I happened to have a lot of spare time recently so I updated my resume and made a complete yet detailed summary of all the projects I have done in my career life up till now and most of them are open-sourced.

A GitBook version is here


Back to my blog

Haven’t been writing new stuffs for a damn long time since I have been involved in a game project of our company for nearly two years.

But, the project was called off all of sudden at the end of last month just before being released to AppStore ……

I think the only thing might be good for me now is that I get to have sometime to rest and learn something new and start write some thing just like before.

Good luck the rest of the year, Hope So

5 Mins Mystery (v2.0) released !!!

It has been over one year since the last update so this time it is a BIG BIG update:


Cocos2dHtml5Dev — A cocos2d-html5(2.x) plugin for SublimeText

I happened to tried the QuickXDev — a powerful quick-cocos2d-x develop plugin for sublime text recently and it is really an awesome solution for quick && light && free cocos2d-x lua game develop solution.

But being a cocos2d-html5 user it’s a pity that there is no such cool plugins for js solution.

So I took some time read the sublimne text plugin api document and the QuickXDev source and tried to make something similar for cocos2d-html5.

A simple solution on implementing bluetooth multiplayer with cocos2d-html5 + JSBinding + cocos2d-x + GameKit

Why do this:
I’m trying to add bluetooth multiplayer features to my recent released game which uses cocos2d-html5 + JSBinding + cocos2d-x and could not find articles about this on the Internet so I decided to find a way out myself.
If you are looking for something similar to this I hope you can get inspired by this demo 🙂



5 Mins Mystery (v1.0) released !!!

It has been about 3 years since my last game released on AppStore …

It has been too long …

And I think this is my last game as a indie game developer …

The game is made with cocos2d-html5 + JSBinding + cocos2d-x + Parse …

cocos2d-html5 + node webkit

A little bit experiment (using node webkit):

. tests
.. macos 10.8.5