|
1 |
| -# Create Phaser Game |
2 |
| - |
3 |
| - |
4 |
| - |
5 |
| -One of the easiest ways to get started quickly with [Phaser](https://phaser.io) is by using our `create-phaser-game` app. This is a CLI tool that presents an interactive selection of official project templates and demo games. Just issue the command, answer some questions and the app will download and configure the right package for your needs. |
6 |
| - |
7 |
| -Currently, we support all of the following frameworks and bundlers: |
8 |
| - |
9 |
| -| Frameworks | Bundlers | |
10 |
| -| --------- | ------- | |
11 |
| -| Vue.js | Vite | |
12 |
| -| React | Rollup | |
13 |
| -| Angular | Parcel | |
14 |
| -| Next.js | Webpack | |
15 |
| -| SolidJS | ESBuild | |
16 |
| -| Svelte | Import Map | |
17 |
| - |
18 |
| -Most of these come in both JavaScript and TypeScript versions. The tool will present this option to you when available. |
19 |
| - |
20 |
| -## Demo Games |
21 |
| - |
22 |
| -As well as the frameworks and bundlers listed above, the app also includes 3 Demo games you can install. These are: |
23 |
| - |
24 |
| -* Phaser's Revenge - A space action pixel-art game. |
25 |
| -* Coin Clicker - Simply click the coins as quickly as you can. |
26 |
| -* Memory Card Game - Match the pairs in this timeless puzzle. |
27 |
| - |
28 |
| -These games are meant as demonstrations of using the Phaser game framework, so you can learn by example. If you already know what you want to build, you can select one of the templates instead. |
29 |
| - |
30 |
| -## How to use |
31 |
| - |
32 |
| -To create a new local game template interactively, use one of the following terminal commands: |
33 |
| - |
34 |
| -``` |
35 |
| -npm create @phaserjs/game@latest |
36 |
| -``` |
37 |
| - |
38 |
| -``` |
39 |
| -npx @phaserjs/create-game@latest |
40 |
| -``` |
41 |
| - |
42 |
| -``` |
43 |
| -yarn create @phaserjs/game |
44 |
| -``` |
45 |
| - |
46 |
| -``` |
47 |
| -pnpm create @phaserjs/game@latest |
48 |
| -``` |
49 |
| - |
50 |
| -``` |
51 |
| -bunx create @phaserjs/game@latest |
52 |
| -``` |
53 |
| - |
54 |
| -## First Time Users |
55 |
| - |
56 |
| -If this is the first time you're using Phaser and you're not sure where to start, we recommend selecting the options: `Web Bundler` and then `Vite`. |
57 |
| - |
58 |
| -## Pass a custom folder |
59 |
| - |
60 |
| -You can optionally pass the project / folder name and skip that step of the tool by providing a parameter to the create command: |
61 |
| - |
62 |
| -``` |
63 |
| -npm create @phaserjs/game@latest folder-name |
64 |
| -``` |
65 |
| - |
66 |
| -If your folder name has spaces in it, don't forget to wrap it in quotes: |
67 |
| - |
68 |
| -``` |
69 |
| -npm create @phaserjs/game@latest "folder name" |
70 |
| -``` |
71 |
| - |
72 |
| -## After installation |
73 |
| - |
74 |
| -The tool will then ask you a series of questions to allow you to select the correct template for your needs. |
75 |
| - |
76 |
| -Once installed, check the `README.md` file in the newly created folder for further instructions on how to launch and configure the template. |
77 |
| - |
78 |
| ---- |
79 |
| - |
80 |
| -## Join the Phaser Community! |
81 |
| - |
82 |
| -We love to see what developers like you create with Phaser! It really motivates us to keep improving. So please join our community and show-off your work 😄 |
83 |
| - |
84 |
| -**Visit:** The [Phaser website](https://phaser.io) and follow on [Phaser Twitter](https://twitter.com/phaser_)<br /> |
85 |
| -**Play:** Some of the amazing games [#madewithphaser](https://twitter.com/search?q=%23madewithphaser&src=typed_query&f=live)<br /> |
86 |
| -**Learn:** [API Docs](https://newdocs.phaser.io), [Support Forum](https://phaser.discourse.group/) and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)<br /> |
87 |
| -**Discord:** Join us on [Discord](https://discord.gg/phaser)<br /> |
88 |
| -**Code:** 2000+ [Examples](https://labs.phaser.io)<br /> |
89 |
| -**Read:** The [Phaser World](https://phaser.io/community/newsletter) Newsletter<br /> |
90 |
| - |
91 |
| - |
92 |
| - |
93 |
| -Created by [Phaser Studio Inc](mailto:support@phaser.io). Powered by coffee, anime, pixels and love. |
94 |
| - |
95 |
| -The Phaser logo and characters are © 2011 - 2024 Phaser Studio Inc. |
96 |
| - |
97 |
| -All rights reserved. |
| 1 | +# Create Phaser Game |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +One of the easiest ways to get started quickly with [Phaser](https://phaser.io) is by using our `create-phaser-game` app. This is a CLI tool that presents an interactive selection of official project templates and demo games. Just issue the command, answer some questions and the app will download and configure the right package for your needs. |
| 6 | + |
| 7 | +Currently, we support all of the following frameworks and bundlers: |
| 8 | + |
| 9 | +| Frameworks | Bundlers | |
| 10 | +| --------- | ------- | |
| 11 | +| Vue.js | Vite | |
| 12 | +| React | Rollup | |
| 13 | +| Angular | Parcel | |
| 14 | +| Next.js | Webpack | |
| 15 | +| SolidJS | ESBuild | |
| 16 | +| Svelte | Import Map | |
| 17 | + |
| 18 | +Most of these come in both JavaScript and TypeScript versions. The tool will present this option to you when available. |
| 19 | + |
| 20 | +## Demo Games |
| 21 | + |
| 22 | +As well as the frameworks and bundlers listed above, the app also includes 3 Demo games you can install. These are: |
| 23 | + |
| 24 | +* Phaser's Revenge - A space action pixel-art game. |
| 25 | +* Coin Clicker - Simply click the coins as quickly as you can. |
| 26 | +* Memory Card Game - Match the pairs in this timeless puzzle. |
| 27 | + |
| 28 | +These games are meant as demonstrations of using the Phaser game framework, so you can learn by example. If you already know what you want to build, you can select one of the templates instead. |
| 29 | + |
| 30 | +## How to use |
| 31 | + |
| 32 | +To create a new local game template interactively, use one of the following terminal commands: |
| 33 | + |
| 34 | +``` |
| 35 | +npm create @phaserjs/game@latest |
| 36 | +``` |
| 37 | + |
| 38 | +``` |
| 39 | +npx @phaserjs/create-game@latest |
| 40 | +``` |
| 41 | + |
| 42 | +``` |
| 43 | +yarn create @phaserjs/game |
| 44 | +``` |
| 45 | + |
| 46 | +``` |
| 47 | +pnpm create @phaserjs/game@latest |
| 48 | +``` |
| 49 | + |
| 50 | +``` |
| 51 | +bun create @phaserjs/game@latest |
| 52 | +``` |
| 53 | + |
| 54 | +## First Time Users |
| 55 | + |
| 56 | +If this is the first time you're using Phaser and you're not sure where to start, we recommend selecting the options: `Web Bundler` and then `Vite`. |
| 57 | + |
| 58 | +## Pass a custom folder |
| 59 | + |
| 60 | +You can optionally pass the project / folder name and skip that step of the tool by providing a parameter to the create command: |
| 61 | + |
| 62 | +``` |
| 63 | +npm create @phaserjs/game@latest folder-name |
| 64 | +``` |
| 65 | + |
| 66 | +If your folder name has spaces in it, don't forget to wrap it in quotes: |
| 67 | + |
| 68 | +``` |
| 69 | +npm create @phaserjs/game@latest "folder name" |
| 70 | +``` |
| 71 | + |
| 72 | +## After installation |
| 73 | + |
| 74 | +The tool will then ask you a series of questions to allow you to select the correct template for your needs. |
| 75 | + |
| 76 | +Once installed, check the `README.md` file in the newly created folder for further instructions on how to launch and configure the template. |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +## Join the Phaser Community! |
| 81 | + |
| 82 | +We love to see what developers like you create with Phaser! It really motivates us to keep improving. So please join our community and show-off your work 😄 |
| 83 | + |
| 84 | +**Visit:** The [Phaser website](https://phaser.io) and follow on [Phaser Twitter](https://twitter.com/phaser_)<br /> |
| 85 | +**Play:** Some of the amazing games [#madewithphaser](https://twitter.com/search?q=%23madewithphaser&src=typed_query&f=live)<br /> |
| 86 | +**Learn:** [API Docs](https://newdocs.phaser.io), [Support Forum](https://phaser.discourse.group/) and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)<br /> |
| 87 | +**Discord:** Join us on [Discord](https://discord.gg/phaser)<br /> |
| 88 | +**Code:** 2000+ [Examples](https://labs.phaser.io)<br /> |
| 89 | +**Read:** The [Phaser World](https://phaser.io/community/newsletter) Newsletter<br /> |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | +Created by [Phaser Studio Inc](mailto:support@phaser.io). Powered by coffee, anime, pixels and love. |
| 94 | + |
| 95 | +The Phaser logo and characters are © 2011 - 2024 Phaser Studio Inc. |
| 96 | + |
| 97 | +All rights reserved. |
0 commit comments