Skip to content

Simple Typescript Phaser project to speed up development

Notifications You must be signed in to change notification settings

enumoxstudio/phaser-ts-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phaser Typescript Starter

A simple project with phaser + typescript meant to speed up the creation of new games.

What you'll need

  • npm
  • typescript
  • http-server

Getting Started

  1. Clone the repository
  2. Build the project
$ tsc -p "path\to\project\Phaser TS Starter\tsconfig.json"
  1. Start the http-server
$ http-server
  1. You're good to go

Tutorial

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.

Phaser

You can learn more about Phaser on their repository page. The version used in this repository is the CE 2.9.4.

About

Simple Typescript Phaser project to speed up development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages