Phaser3 Typescript Starter Kit

screenshot of Phaser3 Typescript Starter Kit

This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.

Overview

The Phaser 3 + TypeScript Starter Kit is a repository containing all the necessary code to start making a game using Phaser 3 and TypeScript. It builds upon a blog post tutorial and includes additional features like a loading screen, main menu screen, and a movable sprite. The latest update includes compatibility with Phaser 3.50 and TypeScript 4.1, as well as changes to the webpack config for production and development builds. The starter kit aims to eliminate the boilerplate required to set up a Phaser 3 + TypeScript project.

Features

  • Includes all necessary code to start making a game in Phaser 3 using TypeScript.
  • Expanded version of a tutorial with additional features like loading screen and main menu screen.
  • Example sprite included that can be moved using arrow keys.
  • Compatible with Phaser 3.50 and TypeScript 4.1.
  • Webpack config changed to support production and development builds.
  • "yarn dev" command for running the game in development mode.
  • "yarn prod" command for running the game with production compilation.
  • "yarn build:prod" command to compile the project into an optimized bundle.
eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.