When comparing pyglet vs Phaser.io, the Slant community recommends Phaser.io for most people. In the question“What are the best 2D game engines?” Phaser.io is ranked 9th while pyglet is ranked 37th. The most important reason people chose Phaser.io is:
Ranked in these QuestionsQuestion Ranking
Pro 3D support
Since pyglet is so tightly woven with OpenGL it allows the support of drawing in 3D.
Works with Windows, Linux, and OS X.
Pro Written in pure Python
A small advantage, but being a core Python developer, it may be the best to stick to the roots and develop with pyglet as it is able to compile using other Python interpreters.
Pro Very fast to develop with
Pro Good tutorials, courses and books
There are plenty of great learning resources available for Phaser.io.
Pro Super-simple loading of assets
Pro Great community resources
Pro Animating is easy
Pro Excellent tools for sprites
Pro Built-in Arcade Particle system
Pro Easy to learn
Pro Support for Arcade Physics, Ninja Physics and p2.js
Pro No install required
All you need to do is attach Phaser script to a HTML page even without installing any extensions.
Pro Very active development
This is one of the most developed frameworks right now.
Pro WebGL and Canvas rendering modes
You can choose WebGL or classic HTML canvas element for game rendering.
Pro Easy to learn
Most task are done just using 2 or 3 lines of codes...
Pro Has separate versions maintained by developer and the community
The creator of phaser(photonstorm) has given the older(Phaser 2.0) source code to the community for their own maintenance, and has made Phaser 3.0 with a different style and approach, trying to make it easier for beginners to learn.
Pro Easy to understand if you have used flash
Phaser provides a similar approach as to that of Flash games, where you can load assets and place them on a stage, and even improves upon the shortcomings of actionscript. It is very easy to shift from flash to HTML5 development because of this approach.
Con Small community/popularity
There is a decent amount of documentation and API to go along with pyglet, but in terms of community support there seems to be very little.
Con Poor performance
As long as your map is not larger than 600*400px, everything is fine.