Open lean opened 7 years ago
Implement Phaser Manifest Loader for Webpack which provides an easy way to load assets : https://github.com/mattcolman/phaser-manifest-loader (+ it is based on this repo so it easy to implement)
Create a folder with a file implementing the main webpack config and extend it to a dev/prod/cordova... like that if you wants to add a plugin to your webpack config you don't have to copy/paste the same lines in every environnement (webpack.conf, webpack.deploy) <-- I could do that
it would be nice if you could add support for electron. that way you d have mobile desktop and web on the same template :)
What you think about add something like https://github.com/mixtur/webpack-spritesmith, then we could easily merge all the image assets into a atlas on the build (and in dev runtime). I'm playing with this idea in a old fork of your repo, if you want to check it out: https://github.com/RafaelDelboni/phaser-dungeon
Maybe it's possible to add Webpack's Hot Module Replacement ( https://webpack.js.org/concepts/hot-module-replacement/ )
Hi, I think we need to separate the upgrade to phaser 3 from the other enhancements, that way we could consume it in smaller chunks.
I'll try to upgrade it to phaser 3 and make a pull request for it. Are you still up to merge it? @lean
EDIT: After looking through the phaser3 branch, I've seen it's mostly complete regarding upgrading to phaser3, is there anything missing that prevents you from merging to master?
Don't worry about the merge, I will do manually because I was planning to move the v2 to another repo. So let me check your work and I will integrate it with what I have been doing
I've made something very similar some time ago, maybe it helps as source of inspiration: https://github.com/rafaeldelboni/phaser3-es6-webpack4
@lean I'm not worried. I just don't want to repeat / duplicate work that already has been done. Is there anything else needed to be done on top of your phaser3
branch in order to support Phaser 3.0?
@oronbz cool, let me update some things. I will tell you when I'm ready
@rafaeldelboni thanks for share your project. I'm looking at it right now
@oronbz I just updated https://github.com/lean/phaser-es6-webpack/tree/phaser3 Now is running with webpack 4 and babel 7
@lean that's awesome, Is there any reason you haven't included cordova too?
I haven't include for lack of time. I even think it's still incomplete. We need to add:
For newcomers like me it would be useful to update the ReadME with some information about the v3 branch and any steps needed to use it (if any). Some ppl will just assume there's no v3 support yet.
I have create the branch 'phaser3' to start with the implementation of the new release of the library. Does anyone have any ideas or suggestions to implement? Any functionality to add or remove?
There are some ideas: