Skip to content

Commit 002e9b1

Browse files
committed
Update README.md
1 parent fc257b8 commit 002e9b1

1 file changed

Lines changed: 2 additions & 28 deletions

File tree

README.md

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,40 +66,16 @@ We support Vue.js, React, Angular, Next.js, SolidJS, Svelte and Remix with Vite,
6666

6767
## How Big is Phaser?
6868

69-
Don't be alarmed if you look at `phaser.js` and see a file approaching 10 MB. Over 84% of that is inline documentation - JSDoc comments, type annotations, and detailed method descriptions that power the TypeScript definitions and API docs. It's there for your IDE, not for your players.
69+
Don't be alarmed if you look at `phaser.js` and see a file over 8 MB. Over 84% of that is inline documentation - JSDoc comments, type annotations, and detailed method descriptions that power the TypeScript definitions and API docs. It's there for your IDE, not for your players.
7070

71-
The minified build, `phaser.min.js`, strips all of that out and comes in at **345 KB** with standard gzip server compression. This is the full version, with every feature included, but is still smaller than most title screen images. You can reduce it further still by tweaking the build settings to exclude features your game doesn't need.
71+
The minified build, `phaser.min.js`, strips all of that out and comes in at **345 KB** with standard gzip web server compression. This is the full version, with every feature included, but is still smaller than most title screen images. You can reduce it further still by tweaking the build settings to exclude features your game doesn't need.
7272

7373
| Build | Raw Size | Compressed (gzip) |
7474
| ----- | -------- | ------------------ |
7575
| `phaser.js` (with docs) | 8.23 MB | - |
7676
| `phaser.min.js` (full) | 1.29 MB | 345 KB |
7777
| `phaser-arcade.min.js` | 1.18 MB | 313 KB |
7878

79-
## Your First Game
80-
81-
```js
82-
class GameScene extends Phaser.Scene {
83-
preload() {
84-
this.load.image('logo', 'assets/logo.png');
85-
}
86-
87-
create() {
88-
this.add.image(400, 300, 'logo');
89-
this.add.text(400, 500, 'Hello Phaser 4!', { fontSize: '32px' }).setOrigin(0.5);
90-
}
91-
}
92-
93-
const config = {
94-
type: Phaser.AUTO,
95-
width: 800,
96-
height: 600,
97-
scene: GameScene
98-
};
99-
100-
const game = new Phaser.Game(config);
101-
```
102-
10379
### Why Phaser?
10480

10581
- **Battle-tested** - Over a decade of active development. Tens of thousands of games shipped. A huge community of developers who've seen it all.
@@ -109,8 +85,6 @@ const game = new Phaser.Game(config);
10985
- **Massive ecosystem** - Over 2,000 code examples. Extensive API documentation. Active Discord and forums. First-class TypeScript definitions.
11086
- **AI-ready** - Phaser's API is well understood by every major frontier LLM. This repository includes a comprehensive set of [AI agent skills](skills/) that give coding agents deep knowledge of every Phaser subsystem, making it the ideal framework for AI-assisted game development.
11187

112-
---
113-
11488
## What's New in Phaser 4
11589

11690
Phaser 4 is a major release built on a brand-new WebGL renderer. The entire rendering pipeline from v3 has been replaced with a modern, node-based architecture that manages WebGL state properly, handles context loss gracefully, and is significantly faster. If you've built games with Phaser 3, the public API is mostly familiar - but under the hood, everything has changed for the better.

0 commit comments

Comments
 (0)