electron-phaser icon indicating copy to clipboard operation
electron-phaser copied to clipboard

Confusion

Open austinthetaco opened this issue 7 years ago • 3 comments

I noticed you said to follow the instructions from electron-boilerplate, but it seems you have modified to the file structure and files significantly (i.e. got rid of the src folder altogether). Is there anyway you could add some detail to where to put phaser files vs electron/website files? Or at the very least a quick primer?

austinthetaco avatar Jul 12 '17 12:07 austinthetaco

I think something has changed on the electron-boilerplate repo. With something I mean A LOT. :D The short term solution will be to remove the link to the boilerplate documentation (or use this link to the original document committed in 2016 ) As you can see, the src folder didn't exist, and I don't why it has been added, but reading the gulp tasks on the electron-boilerplate repo could help. I will try as soon as I have time.

A better solution instead will be writing the right documentation for the merge, but this will probably require at least:

  • an updated version of electron
  • the last phaser library

I will see what I can do, but feel free to create pull requests 😎

Fax avatar Jul 12 '17 13:07 Fax

I didn't expect such a sudden response! Thank's!

I wish I had the knowledge to update something like this so...drastically. If I get the courage I'll submit something for a pull request for sure.

austinthetaco avatar Jul 12 '17 13:07 austinthetaco

No problem!

Anyway I was checking the code again and:

  • the file background.js is the Electron javascript. You create windows here.
  • the file app.js is the phaser application, the js that will run in the app.html
  • libs contains all the external libraries you need for your app

If you want to add your files, you can just:

  • create your own folder under app
  • import the files you will need in app.js

the bundler will follow every import and create a single file for electron pulling and gluing together all imported files.

So, even in the current state, the application works and can be used.

Fax avatar Jul 12 '17 13:07 Fax