create-first-project.rst 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .. include:: ../_header.rst
  2. Create your first project
  3. -------------------------
  4. We provide a couple of project templates that you can download from the `Phaser Editor 2D Start page <https://phasereditor2d.com/start>`_. You'll see that each template card contains links for downloading a zip with the project, a link to the GitHub project, and a link for opening the project in Gitpod_ (a cloud-based development environment).
  5. .. image:: ../images/first-steps-online-start-page-09132021.webp
  6. :alt: Download project templates online
  7. There are two groups for templates: **Basic Templates** and **Example Games**.
  8. The **Basic Templates** are "empty" projects with different setups. If you are making a professional game, we recommend using the **Webpack TypeScript** template.
  9. You can take a look to the **Example Games** for learning Phaser Editor 2D by looking the code of "real games".
  10. Each project template has a README file (in the GitHub repository) with the instructions for installing all required dependencies.
  11. More templates are available in the `Phaser Editor 2D Marketplace <https://marketplace.phasereditor2d.com>`_.
  12. This method for stating a new project is great for the |core|_ distribution or for starting a new project in the cloud.
  13. The |allInOne|_ distribution has the option of creating a new project. It contains some built-in templates (available offline), and also connects to the marketplace for getting more.
  14. Follow these steps:
  15. * Click on the **New Project** button:
  16. .. image:: ../images/first-steps-allInOne-new-project-1-20220415.webp
  17. :alt: All-in-one new project.
  18. * Select one of the project templates. Or click on the *Get more in the Marketplace* link, it shows more templates available in the the `Phaser Editor 2D Marketplace <https://marketplace.phasereditor2d.com>`_ (it requires an Internet connection):
  19. .. image:: ../images/first-steps-allInOne-new-project-2-20220415.webp
  20. :alt: Select project template
  21. .. image:: ../images/first-steps-allInOne-new-project-marketplace-20220415.webp
  22. :alt: Select project template from the marketplace.
  23. Projects in the marketplace are created by the Phaser Editor 2D team but also by the community.
  24. * When you select a project template, the IDE opens the OS file explorer. Select a directory where the project content will be copied:
  25. .. image:: ../images/first-steps-select-project-template-20220415.webp
  26. :alt: Select the project folder.
  27. The new project is created and shown in the workbench. If you get it from the marketplace, then it will get a time for fetching the files.
  28. .. image:: ../images/first-steps-new-project-2-04012021.webp
  29. :alt: Workbench shows the new project
  30. To run your project, click in the **Play** button at the beginning of the toolbar:
  31. .. image:: ../images/first-steps-new-play-project-04012021.webp
  32. :alt: Play the project.