

If you reload your game in the browser, you should see the logo appear in your game.
#Phaser 3.0 examples update
To load our image and display it in our game, you will need to update the preload and create functions in index.html: You will need to place the image in same folder as index.html. The asset for the game can be downloaded here. To keep things simple, we are going to use one image and reload it a few times to simulate loading a large number of assets. On some browsers like Firefox you need to add a STUN server to make it work. From your command line: Note: Test it on Chrome. To clone and run this game, you'll need Git and Node.js (which comes with npm) installed on your computer.
#Phaser 3.0 examples how to
Before we can create our preloader, we will need to load some assets into our game. Phaser 3 Multiplayer Game Example with geckos.io How To Start. Now that our project is setup, we can get started. If you try running your game, you should see a black screen, and if you open the console in the developer tools, you should see a log with the version of Phaser your game is running.

We are going to create a basic html page, add a reference to Phaser, and create our Phaser game object. Open your IDE, and create a new file called index.html.
#Phaser 3.0 examples code
Once you have these setup, we will setup the basic code for our game. If you don’t already have one, I would recommend the Brackets editor since it is easy to use, and it has a feature called Live Preview that will allow you to run your Phaser game without installing a web server. You will also need an IDE or Text Editor for writing your code. If you don’t already have this setup, you can read how to do that here: Getting Start With Phaser. In order to run your Phaser game locally, you will need a web server for running your game. Learn to code and make impressive games with JavaScript and Phaser 3! The HTML5 Game Development Mini-Degree is now available for Pre-Order on Zenva Academy. Learn Phaser 3 with our newest Mini-Degree

Phaser 3 is not harder to learn or use than Phaser 2/CE. There is a massive example database hosted at phaser.io/examples/v3. For a long time they haven't been as good as those for Phaser 2/CE but they're getting there. It has a custom render that you can expect to be updated frequently. Phaser 3 already have Facebook Instant games support and have a roadmap of upcoming features. Don't expect Phaser CE to any more new features. (Phaser CE isn't LTS as stated in another answer). Phaser CE on the other hand, has bugfixes submitted by the community. You can expect bugs to be addressed promptly. It will continue to evolve with the development of JavaScript engines and browsers. The community is already migrating to it, so it will be much easier to get answers from the community. You'll have a hard time to find anything superior with earlier versions. It's modular and based on lessons learned from Phaser 2.
