I just started making my game using cocos 2d js. It’s really easy to import ScaledJS to Cocos2D JS.

Install

Install ScaledJS, typically to a place where you will put your other libraries. (Config your BowerRC before executing this command)

bower install scaledjs --save

Include file in project.json

Include this line in your jsList in project.json

"jsList" : [
...,
...,
"src/lib/scaledjs/build/scaled.min.js",
...
]

Check ScaledJS Import

Check using CCLog

cc.log(ScaledGen);

Well that’s it! You can now start making terrain that suits your needs