I am new to game development and I want to learn game dev. I have discovered the Phaser framework and I want to learn it.
Should I learn Phaser 3 or Phaser 2/CE? What is the difference?
I am new to game development and I want to learn game dev. I have discovered the Phaser framework and I want to learn it.
Should I learn Phaser 3 or Phaser 2/CE? What is the difference?
Phaser 3 is the latest version of Phaser and succeeder of Phaser 2. When the official development of Phaser 2 ceased Photonstorm released Phaser into the hands of the community, this is Phaser CE (Community Edition). The community has done excellent work with continuing Phaser CE development. Because Phaser 3 is now available, there are only two reasons to use Phaser CE:
Otherwise, I highly recommend Phaser 3:
You have a point with starting with the newest version, and I tried doing that, but there is very little external reference available for it. The documentation is not readable at all, and there are few examples.
In this stupid little card game I've been working on for a couple weeks, I'm using 2ce. Between the docs and examples, I've been able to figure out most everything I need to do.
I tried 3. Between the relatively sparse examples and the unreadable docs, it was highly unusable.
[Jan 2021 edit] In 2020 I had an opportunity to work on another li'l game project and chose Phaser 3. In the interim couple of years, the documentation has been filled out and the community has turned over quite a bit.
The above text was true at the time of that post. Currently, Phaser 3 ecosystem has matured quite a bit.
Consider CE as being like a LTS (long-term support) version, not too much changes in it, mostly fixes and small updates, but it’s stable as hell and well covered with docs / tutorials / examples
But there is a special phaser faq that says to use Phaser 3 if you are new to the framework because you will have to learn everything from Phaser 3 if you start with Phaser 2 (CE)