Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use Phaser 3 or Phaser 2/CE? [closed]

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?

like image 793
nazimboudeffa Avatar asked Oct 11 '18 15:10

nazimboudeffa


People also ask

What is Phaser CE?

Phaser CE is a fast, free, and fun open source HTML5 game framework. It uses a custom build of Pixi. js for WebGL and Canvas rendering, and supports desktop and mobile web browsers. Games can be compiled to iOS, Android and native desktop apps via 3rd party tools. You can use JavaScript or TypeScript for development.

What is a Tween phaser?

Tweens. Tween. A Tween is able to manipulate the properties of one or more objects to any given value, based on a duration and type of ease. They are rarely instantiated directly and instead should be created via the TweenManager.


1 Answers

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:

  1. If you're already working with a Phaser 2/CE-project or maintaining one.
  2. If you know Phaser 2/CE and have a tight deadline.

Otherwise, I highly recommend Phaser 3:

  1. It's a complete rewrite of Phaser. It's modular and based on lessons learned from Phaser 2. You'll have a hard time to find anything superior with earlier versions.
  2. It's the future. The community is already migrating to it, so it will be much easier to get answers from the community. It will continue to evolve with the development of JavaScript engines and browsers. You can expect bugs to be addressed promptly. Phaser CE on the other hand, has bugfixes submitted by the community. (Phaser CE isn't LTS as stated in another answer).
  3. New features. Don't expect Phaser CE to any more new features. Phaser 3 already have Facebook Instant games support and have a roadmap of upcoming features. It has a custom render that you can expect to be updated frequently.
  4. The docs are continuously improving. For a long time they haven't been as good as those for Phaser 2/CE but they're getting there. There is a massive example database hosted at phaser.io/examples/v3. Phaser 3 is not harder to learn or use than Phaser 2/CE.
  5. In general: If someone take the time to rewrite a framework it's probably for a good reason. If Phaser 3 failed to replace Phaser 2/CE it would be the death of Phaser, but no signs of that so far. If you want a framework that will also be a viable choice in the future, you should really go for Phaser 3.
like image 100
Niklas Berg Avatar answered Sep 20 '22 12:09

Niklas Berg