phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.19k stars 7.1k forks source link

Phaser3 Example - Pacman game example is broken #3139

Closed danscarf closed 6 years ago

danscarf commented 6 years ago

Please see http:///ph/boot.html?src=src\games\pacman\boot.json

World.js:20 Uncaught TypeError: Cannot read property 'sys' of undefined at new World (World.js:20) at PacmanGame.create (:301:22) at GlobalSceneManager.Create [as create] (Create.js:24) at GlobalSceneManager.LoadComplete [as loadComplete] (LoadComplete.js:13) at EventBinding.dispatch (EventBinding.js:162) at EventDispatcher._dispatchHandler (EventDispatcher.js:149) at EventDispatcher.dispatch (EventDispatcher.js:164) at Loader.processComplete (BaseLoader.js:275) at Loader.removeFromQueue (BaseLoader.js:259) at Loader.processUpdate (BaseLoader.js:248)

VM2700:466 Uncaught TypeError: Cannot read property 'update' of undefined at PacmanGame.update (:466:24) at Systems.step (Systems.js:144) at Game.step (Game.js:230) at TimeStep.step (TimeStep.js:457) at step (RequestAnimationFrame.js:26)

screenshot_20171229_153206

192.168.1.116-1514590332503.log

gitgrimbo commented 6 years ago

Seems public/src/games/pacman/wip1.js#L301 creates a World with no arguments, but World seems to need a scene as it tries to access a sys property.

photonstorm commented 6 years ago

Yes, this example needs recoding. It won't be migrated to the examples site until we fix it.