# phaser3-typescript **Repository Path**: huyawen/phaser3-typescript ## Basic Information - **Project Name**: phaser3-typescript - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-16 - **Last Updated**: 2021-07-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Phaser 3 Game Examples written in TypeScript.

![Dependencies](https://img.shields.io/david/digitsensitive/phaser3-typescript.svg?style=flat-square) ![GitHub issues](https://img.shields.io/github/issues/digitsensitive/phaser3-typescript.svg?style=flat-square) ![GitHub stars](https://img.shields.io/github/stars/digitsensitive/phaser3-typescript.svg?style=flat-square) ![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg?style=flat-square) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) ![GitHub licence](https://img.shields.io/github/license/digitsensitive/phaser3-typescript.svg?style=flat-square)

Examples made with ❤︎ by digitsensitive
Framework created by Photonstorm

# Phaser 3 and TypeScript [Phaser](https://github.com/photonstorm/phaser) is a wonderful, fast and free open source HTML5 game framework. Here you will find everything you need to develop games with Phaser 3 in TypeScript. Have fun discovering, developing and playing! Ideas and corrections are highly desirable to constantly improve this repository!
Buy Me A Coffee
## Getting started ### Prerequisites ``` Download and install Node.js @ https://nodejs.org/en Download and install yarn @ https://classic.yarnpkg.com/en/docs/install ``` ### Installing Select a folder, navigate to it, and clone this repository with this command-line: ``` git clone https://github.com/digitsensitive/phaser3-typescript.git ``` ## Boilerplates Check the `package.json` for the correct scripts to start projects. For example you can start the `Webpack Boilerplate` project with: ``` yarn webpack-boilerplate ``` - [Webpack Boilerplate](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/boilerplates/webpack-boilerplate) - [Parcel Boilerplate](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/boilerplates/parcel-boilerplate) ## Examples ### Games Check the `package.json` for the correct scripts to start projects. For example you can start the `Candy Crush` project with: ``` yarn candy-crush ``` - [Alpha Adjust](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/alpha-adjust) - [Asteroid](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/asteroid) - [Blockade](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/blockade) - [Blocks](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/blocks) - [Candy Crush](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/candy-crush) - [Coin Runner](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/coin-runner) - [Flappy Bird](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/flappy-bird) - [Snake](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/snake) - [Space Invaders](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/space-invaders) - [Super Mario Land](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/games/super-mario-land) If you have any suggestion for a next game example, let me know! ### Experimental Check the `package.json` for the correct scripts to start projects. For example you can start the `Game of Life` project with: ``` yarn game-of-life ``` - [Cellular Automaton](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/cellular-automaton) - [Fractal Tree](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/fractal-tree) - [Game of Life](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/game-of-life) - [Lissajous curve](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/lissajous-curve) - [Point in Polygon](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/point-in-polygon) - [Procedural Generation](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/procedural-generation) - [Raycasting](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/raycasting) - [Untextured Raycaster](https://github.com/digitsensitive/phaser3-typescript/blob/master/src/experimental/untextured-raycaster) ### Patterns Check the `package.json` for the correct scripts to start projects. For example you can start the `Factory Method` project with: ``` yarn factory-method ``` - [Factory Method](https://github.com/digitsensitive/phaser3-typescript/blob/master/patterns/creational-design-patterns/factory-method) ## Project Configurations ### Prettier This project uses [Prettier](https://github.com/prettier/prettier), an opinionated code formatter. The selected configuration options can be found in the `.prettierrc` file in the root project folder. More informations about the format options can be found [here](https://prettier.io/docs/en/options.html). ### TypeScript The selected compiler options for each project are set in the `tsconfig.json` file. More informations about the available options can be found [here](https://www.typescriptlang.org/tsconfig). ## Tutorials - [Learn to create a HTML5 Game in 5 Minutes](https://medium.com/@digit.sensitivee/learn-to-create-a-html5-game-in-5-minutes-604118f5d0ab) - [Game Programming Patterns: The Factory Method by Example](https://medium.com/@digit.sensitivee/game-programming-patterns-the-factory-method-87d7f8c12081) ## External Resources and Tools - [Phaser 3 Framework](https://github.com/photonstorm/phaser) - [Phaser 3 Docs with TypeScript Definition File](https://github.com/photonstorm/phaser3-docs) - [Phaser 3 Online Docs](https://photonstorm.github.io/phaser3-docs/index.html) - [Phaser 3 Official Examples](https://github.com/photonstorm/phaser3-examples) - [Phaser 3 Discourse](https://phaser.discourse.group) - [Leshy SpriteSheet Tool](https://www.leshylabs.com/apps/sstool) - [Tiled](https://www.mapeditor.org) - [Littera](http://kvazars.com/littera) - [Tile Extruder](https://github.com/sporadic-labs/tile-extruder) ## Changelog [Learn about the latest improvements](https://github.com/digitsensitive/phaser3-typescript/blob/master/CHANGELOG.md) ## Contributing Want to correct a bug, contribute some code, or improve the codes? Excellent! Let me know! Please read [CONTRIBUTING.md](https://github.com/digitsensitive/phaser3-typescript/blob/master/CONTRIBUTING.md) for details on our code of conduct. I would like to thank the following persons for their support and help: [@FakeBarenziah](https://github.com/FakeBarenziah) [@emedws](https://github.com/emedws) [@evanlanglais](https://github.com/evanlanglais) [@iliyaZelenko](https://github.com/iliyaZelenko) ## License This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/digitsensitive/phaser3-typescript/blob/master/LICENSE) file for details.