-
Notifications
You must be signed in to change notification settings - Fork 5
2. Let's get started
Before we can get our hands dirty, some preparation is needed. I work on an iMac with OS X El Capitan installed. All the tools I will use will also work on Windows or Linux. Of course you are free to use any other tools you want.
Local web server
You will need a local web server to run the game on. I will not go into this in detail, because there are plenty informations on the official Phaser Website. I use http-server, which is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.
Editor
Obviously you need an editor to write code to. I use Atom, Version 1.9.8, which is a hackable text editor, which means you can customize it however you want. It is easy to use and you only have what you really need. If you want to use Atom, go download and install it. If you have another editor to write code with, just use that.
After you start Atom for the first time you will have to install the package atom-typescript. In Atom go to Atom -> Preferences -> Install and type atom-typescript in the field. Be sure to have activated Packages next to the search field. Install the atom-typescript package and restart atom. Now the editor is ready.
Phaser
Last but not least you need the Phaser library. Get it here and download the zip. Phaser 2.6.1 "Caemlyn" is the current stable version and was used for these tutorials. After you have downloaded the zip unpack it and leave the folder phaser-2.6.1 as it is for now.
Alright. So we have an editor that is ready for TypeScript, the Phaser library is ready to use and the game can be started on our local server.