News for hackers. Stuff that matters.
Re:Phaser – A fast, fun and free open source HTML5 game fram... by kelukelugames on Saturday August 15, 2015 @01:15PM (#10065992)
I am going through the official tutorial right now. Are there any:

1) examples of phaser games using multiple .js files?

2) games with multiple levels?

And what are the best games made with phaser?

Re:Phaser – A fast, fun and free open source HTML5 game fram... by georgefrick on Saturday August 15, 2015 @05:03PM (#10066890)
I could possibly get you an example of both if you were interested. Most of the people using Phaser are using Tyepscript and doing multi-module management with that. I use Browserify (and bring in Phaser separately).

If you have a state that loads levels, you change the level targets and restart the state so that the preload runs again and gets the new resources. Or you can load everything up front and approach multiple levels that way.

Re:Phaser – A fast, fun and free open source HTML5 game fram... by kelukelugames on Saturday August 15, 2015 @05:26PM (#10066969)
yes please teach me!
Re:Phaser – A fast, fun and free open source HTML5 game fram... by georgefrick on Sunday August 16, 2015 @01:46PM (#10069619)
Here is a multi-module project I wrote back in January: https://github.com/georgefrick/PhaserJsDemoGame
Re:Phaser – A fast, fun and free open source HTML5 game fram... by chinstorff on Monday August 17, 2015 @04:24PM (#10075867)
Here's a game with multiple levels and multiple .js files I made last June.

Source: https://github.com/frontfish/blobber Play: http://frontfish.net/games/blobber

Re:Phaser – A fast, fun and free open source HTML5 game fram... by oneweekwonder on Saturday August 15, 2015 @05:40PM (#10067015)
> 1) examples of phaser games using multiple .js files?

Not a example but you can use Yeoman to organise your code.

https://github.com/codevinsky/generator-phaser-official