phaser3-parcel-template
phaser3-parcel-template copied to clipboard
Cant load images
Cant load images from public folder as writed in readme file (and all others). Trying a lot of variants. No errors. Just green square.
What I was doing:
- instal parcel@next // because error if npm install -g parcel-bundler
- clone this template
- this.load.setBaseURL('http://localhost:8000');
- create public/images/star.png // and other variants, for examples assets/images in different places
- this.load.image('star', 'images/star.png'); // and other variants of path
- this.add.image(200, 300, 'star');
Thx
Parcel v1 is no longer maintained, you can try this template: https://github.com/khanxbahria/phaser-parcel-boilerplate