• Stars
    star
    1,764
  • Rank 26,386 (Top 0.6 %)
  • Language
    JavaScript
  • Created over 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Contains hundreds of source code examples and related media for the Phaser HTML5 Game Framework.

Phaser 2 Examples

Looking for Phaser 3 Examples? They are in their own repo.

Phaser v2 is a fast, free and fun open source HTML5 game framework. It uses Pixi.js for WebGL and Canvas rendering across desktop and mobile web browsers. Games can be compiled to iOS and Android apps via 3rd party tools.

Along with the fantastic open source community Phaser is actively developed and maintained by Photon Storm Limited. As a result of rapid support and a developer friendly API Phaser is currently one of the most starred game frameworks on Github.

Thousands of developers worldwide use it. From indies and multi-national digital agencies to schools and Universities. Each creating their own incredible games. Grab the source and join in the fun!

Visit: The Phaser website and follow on Twitter (#phaserjs)
Learn: API Docs, Support Forum and StackOverflow
Code: 700+ Examples (source available in this repo)
Read: Weekly Phaser World Newsletter
Chat: Slack and IRC
Extend: With Phaser Plugins
Be awesome: Support the future of Phaser

div

Phaser Sandbox

If you'd like to try coding in Phaser right now, with nothing more than your web browser then you can head over to the Phaser Sandbox. You'll find Quick Start templates and a user-friendly editor filled with handy code-completion features.

Source Code Examples

Ever since we started Phaser we've been growing and expanding our extensive set of source code examples. Currently there are over 700 of them!

You can browse the Phaser Examples online - or clone this repo so you've got the source code at hand locally.

License

Phaser is released under the MIT License.

Please note that this license does not cover the graphics or audio files that you will find located in this repository. None of them are to be used in commercial games.

div

Game Mechanic Explorer

The Game Mechanic Explorer is a great interactive way to learn how to develop specific game mechanics in Phaser. Well worth exploring once you've got your dev environment set-up.

Mighty Editor - Visual Game Editor

MightyEditor is a browser-based visual Phaser game editor. Create your maps with ease, position objects and share them in seconds. It also exports to native Phaser code. Excellent for quickly setting-up levels and scenes.

Written something cool that shows Phaser in use? Please tell us about it in our forum or email: [email protected]

div

storm

Phaser is a Photon Storm production.

Created by Richard Davey. Powered by coffee, anime, pixels and love.

The Phaser logo and characters are © 2017 Photon Storm Limited.

All rights reserved.

Analytics

More Repositories

1

phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
JavaScript
37,025
star
2

examples

Phaser 3 Examples
JavaScript
1,529
star
3

phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
JavaScript
1,348
star
4

template-webpack

A Phaser 3 project template that uses Webpack 5 for bundling
JavaScript
1,151
star
5

phaser-ce-plugins

For Phaser related Plugins
JavaScript
206
star
6

phaser-ce-coding-tips

Phaser Coding Tips
HTML
146
star
7

template-vite-ts

A Phaser 3 project template that uses TypeScript and Vite for bundling
TypeScript
99
star
8

custom-build

Create your own custom Phaser 3 builds and shave hundreds of KB off your bundle size.
JavaScript
80
star
9

template-vite

A Phaser 3 project template that uses Vite for bundling
JavaScript
80
star
10

template-react

A Phaser 3 project template that demonstrates React communication and uses Vite for bundling
JavaScript
76
star
11

template-react-ts

A Phaser 3 TypeScript project template that demonstrates React communication and uses Vite for bundling
TypeScript
67
star
12

template-vue

A Phaser 3 project template that demonstrates Vue communication and uses Vite for bundling
JavaScript
53
star
13

template-nextjs

A Phaser TypeScript project template that uses Next.js
TypeScript
52
star
14

facebook-instant-games

Phaser 3 Facebook Instant Games Examples
JavaScript
48
star
15

phaser-by-example

The source code to the games that go with the Phaser by Example book
JavaScript
47
star
16

template-svelte

A Phaser 3 project template that combine Svelte with TypeScript and uses Vite for bundling
TypeScript
42
star
17

plugin-template

A base plugin template for Phaser 3
JavaScript
40
star
18

dev

The Phaser 4 R&D Repo. This is ground-zero, where we test new features before making official examples from them.
JavaScript
40
star
19

template-vue-ts

A Phaser 3 TypeScript project template that demonstrates Vue communication and uses Vite for bundling
TypeScript
37
star
20

create-game

Easily create a Phaser project with our official template CLI tool
JavaScript
32
star
21

web-monetization-plugin

An easy-to-use Web Monetization Plugin for HTML5 game frameworks, including Phaser and Pixi.
HTML
31
star
22

template-angular

A Phaser 3 TypeScript project template that uses the Angular framework and Vite for bundling
TypeScript
20
star
23

discord-multiplayer-template

A quickstart Phaser template for creating multiplayer Discord Activities
TypeScript
20
star
24

template-parcel

A Phaser 3 project template that uses Parcel 2 for bundling
JavaScript
17
star
25

template-webpack-ts

A Phaser 3 project template that uses TypeScript and Webpack for bundling
JavaScript
17
star
26

warp-post-fx

Phaser 3 Warp Post FX Pack
TypeScript
16
star
27

discord-template

A quickstart Phaser template for creating playable Discord Activities
JavaScript
15
star
28

template-solid

A Phaser 3 project template that combines SolidJS, TypeScript and uses Vite for bundling
TypeScript
13
star
29

template-esbuild

A Phaser 3 project template that uses ESBuild for bundling
JavaScript
13
star
30

template-bun

A Phaser 3 project template that uses Bun for bundling
TypeScript
13
star
31

beam-archive

Phaser Beam
JavaScript
11
star
32

template-esbuild-ts

A Phaser 3 project template that uses TypeScript and ESBuild for bundling
TypeScript
10
star
33

template-remix

A Phaser TypeScript project template that uses Remix
TypeScript
9
star
34

rapier-connector

Easily use the Rapier physics library with Phaser 3
TypeScript
9
star
35

template-rollup-ts

A Phaser 3 project template that uses TypeScript and Rollup for bundling
TypeScript
7
star
36

template-rollup

A Phaser 3 project template that uses Rollup for bundling
JavaScript
7
star
37

template-parcel-ts

A Phaser 3 project template that uses TypeScript and Parcel for bundling
TypeScript
6
star
38

template-rapier

A Rapier Physics and Phaser Project Template
JavaScript
6
star
39

template-importmap

A Phaser 3 project template that uses Import Maps instead of a bundler
JavaScript
5
star
40

template-twitch-extension

A Phaser 3 Project Template to create Twitch Overlay Extensions with.
JavaScript
4
star
41

phaser-ce-wip-archive

Archived Phaser wip files
TypeScript
4
star
42

vscode-examples-plugin

TypeScript
3
star
43

template-youtube-playables

A Phaser 3 sample game that demonstrates all aspects of the YouTube Playables SDK
JavaScript
3
star
44

wip-archive

A home for our temporary and wip dev files
JavaScript
2
star
45

starshake-capacitor-tutorial

Mobile version of Starshake Phaser game
JavaScript
2
star
46

game-keys

Easily add arrow key support to a test
TypeScript
2
star
47

phaser-editor-template-nextjs

A Phaser Editor 4 TypeScript project template that uses Next.js
TypeScript
2
star
48

editor-example-volcano

An example of a platformer game my with Phaser Editor v4.
TypeScript
2
star
49

tests

Phaser 4 Unit Tests
HTML
1
star
50

.github

1
star
51

phaser-editor-template-angular

A Phaser Editor 4 TypeScript project template that uses the Angular framework and Vite for bundling
TypeScript
1
star
52

phaser-editor-template-esbuild-ts

A Phaser Editor 4 project template that uses TypeScript and ESBuild for bundling
TypeScript
1
star
53

phaser-editor-template-react

A Phaser Editor 4 project template that demonstrates React communication and uses Vite for bundling
JavaScript
1
star
54

phaser-editor-template-webpack

A Phaser Editor 4 project template that uses Webpack for bundling
JavaScript
1
star
55

editor-example-flappy-chicken-scripts-demo

A Phaser Editor v4 example of a a flappy chicken, full of script-nodes.
TypeScript
1
star
56

editor-example-a-day-in-the-beach

A day in the beach, an example game for Phaser Editor v4.
TypeScript
1
star
57

editor-starter-template-capacitorjs

A Phaser Editor v4 template for building native wrappers for your games, with the CapacitorJS framework.
TypeScript
1
star