Closed ExNG closed 6 years ago
Hi. I've tried your project here. I'm not familiar with all the details of Quasar framework but I think these hints will take you in the right direction.
There are a few changes you'll need to perform to make your project work.
First, replace that phaser-glsl-loader
with raw-loader
. It is the recommended one for use with the included Phaser shaders at the moment. You'll need to update your Quasar configuration like below (don't forget to require('webpack')
at the top of that file).
Edit you index.vue
to move the preload
and create
methods inside the scene object. The script will look like this.
One thing I couldn't figure out is why a new game instance is added to the page every time you edit the Edit: Tried with the index.vue
component, though. I guess HMR is not working properly.mounted
and beforeDestroy
hooks to refresh the game, but that could be improved.
Thank you merry much that relly helped me! :)
This Issue is about (delete as applicable)
It looks like WebPack cannot find the following files (which exist):
To try it out yourself check my repo: Kong The following file contains the pahser code:
src/pages/index.vue