ourcade / phaser3-typescript-examples

Various examples and uses for Phaser 3 features in TypeScript for game development 🧰

Home Page:https://examples.ourcade.co/phaser3-typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phaser3-plus-typescript

Phaser 3 TypeScript Examples

Various examples and uses for Phaser 3 features in TypeScript for game development

License

Prerequisites

This examples repository assumes Parcel is installed globally:

npm install -g parcel-bundler

Getting Started

Each example can be run individually with this command:

npm run start -- --example=actions/grid-action

The --examples parameter takes the path to the example that you would like run. All the example code is in the src folder. In the command above, we are running the example located at actions/grid-action in the src folder.

You can also run all the examples at once although it could take a while to build or run out of heap memory. Not exactly sure why but it is being investigated.

But if you want to try then build the root index.html file and then run the start-root script 👇

npm run build-root-index

npm run start-root

Static Assets

All static assets used by the examples are located in the public folder.

Ourcade Examples

You can find these examples at https://examples.ourcade.co

There is a script that goes through all the examples and generates data for each to be included into Ourcade Examples. The code in this repository may be newer than the versions deployed to Ourcade Examples but we try to keep then in sync.

License

MIT License

About

Various examples and uses for Phaser 3 features in TypeScript for game development 🧰

https://examples.ourcade.co/phaser3-typescript

License:MIT License


Languages

Language:PLSQL 45.7%Language:TypeScript 29.4%Language:JavaScript 17.7%Language:GLSL 3.8%Language:HTML 2.6%Language:CSS 0.8%