When comparing Crafty.js vs Phaser, the Slant community recommends Phaser for most people. In the question“What are the best JavaScript game engines?” Phaser is ranked 2nd while Crafty.js is ranked 7th. The most important reason people chose Phaser is:
Phaser keeps things simple and as such is easy to use by beginners.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Javascript
Pro Eventbinding
Easy to learn, based on Entities and Components, the later being class-like objects that entities inherit.
Pro Modular
Has open function binding systems, allowing easy creation of custom components.
Pro Beginner-friendly
Phaser keeps things simple and as such is easy to use by beginners.
Pro 1000s of examples
Thousands of example are on the Phaser website, which show everything you could want to do with Phaser.
Pro Supports WebGL with canvas fallback
If WebGL is unavailable, Phaser automatically switches to HTML5 canvas.
Pro Targets mobile browsers
Built specifically for mobile web browsers.
Cons
Con No IDE
If you like having some huge GUI akin to Gamemaker, Unreal, Unity, etc, Crafty is not for you.
Con Missing accessibility features
While not a big issue, it may be a dealbreaker for some.
Con Poor code structure
There's little in terms of cohesiveness in classes, methods or patterns.