A simple project with phaser + typescript meant to speed up the creation of new games.
- npm
- typescript
- http-server
- Clone the repository
- Build the project
$ tsc -p "path\to\project\Phaser TS Starter\tsconfig.json"
- Start the http-server
$ http-server
- You're good to go
If you are new to npm, this section will teach you how to get your project up and running on your machine. First, you have to download and install npm. After you've done it, open your command prompt and type:
$ npm install typescript -g
This will install typescript globally on your machine. Now you'll be able to run it's binaries from anywhere in your computer using the command prompt. To test if the installation was successfully, type:
$ tsc --version
If the command returns something like Version 2.6.x you're good to go. Next, install the http-server, again, using npm:
$ npm install http-server -g
With this, you'll be able to start a simple http server using the command line. To test it, type the following:
$ http-server
If everything is okay, you'll get a message saying that the server was started.
After this, you should be able to build the files and start the server.
You can learn more about Phaser on their repository page. The version used in this repository is the CE 2.9.4.