Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Cant load images #11

Open
sergdevguy opened this issue Apr 14, 2022 · 1 comment
Open

Cant load images #11

sergdevguy opened this issue Apr 14, 2022 · 1 comment

Comments

@sergdevguy
Copy link

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:

  1. instal parcel@next // because error if npm install -g parcel-bundler
  2. clone this template
  3. this.load.setBaseURL('http://localhost:8000');
  4. create public/images/star.png // and other variants, for examples assets/images in different places
  5. this.load.image('star', 'images/star.png'); // and other variants of path
  6. this.add.image(200, 300, 'star');

Thx

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@sergdevguy and others