projects.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. .. include:: ../_header.rst
  2. .. highlight:: bash
  3. Projects
  4. ========
  5. A |PhaserEditor|_ project is just a folder. It contains the files of your game and generally it is the root of the web path of the game. This means, that probably you should place the ``index.html`` file in the root of the folder.
  6. There are project setups (for example, based on |webpack|_) where the project folder isn't the root of the game.
  7. `Learn more about setting the public root of the project <../asset-pack-editor/public-root.html>`_
  8. In |core|_, you should pass the project path as a program argument:
  9. .. code::
  10. $ PhaserEditor2D -project /path/to/project
  11. In |allInOne|_, you can select the project folder or create a new one.
  12. `Learn how to create your first project <../first-steps/create-first-project.html>`_
  13. Reload project
  14. --------------
  15. |PhaserEditor|_ is not created with collaborative editing in mind. This means, that it assumes that only one user is working on the same project at the same time. You can use source control managers like ``Git`` to collaborate with your team.
  16. However, it may be possible that you change the project files with external tools and you need to refresh that changes in the IDE. When the IDE gets the focus, it does an incremental reload of the changes made by external tools, but you can force (and we recommend) a full reload of the project:
  17. * Pressing ``Ctrl+Alt+R``.
  18. * Or clicking on the **Reload Project** option of the |MainMenu|_.
  19. A full reload of the project also may help to fix a glitch with the |SceneEditor|_ or any other editor.
  20. A reload of the project is different from a reload of the whole web page because only the files of the project are requested again. But a full web page reload is a good procedure if you see your IDE is consuming a lot of memory resources.
  21. You can read the `Resources caching <../misc/resources-caching.html>`_ section for additional information.