phaserjs / 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.
https://phaser.io
MIT License
37.22k stars 7.1k forks source link

The "Hello world" in the "Getting Started" documentation is broken when using the latest phaser version #6476

Closed bfanger closed 1 year ago

bfanger commented 1 year ago

Version

Description

Uncaught Error: createEmitter removed. See ParticleEmitter docs for info

Example Test Code

https://phaser.io/tutorials/getting-started-phaser3/part5

The new notation is:

  const emitter = this.add.particles(0, 0, "red", {
    speed: 100,
    scale: { start: 1, end: 0 },
    blendMode: "ADD",
  });
rationality6 commented 1 year ago

Thank you, I solved it with this.

baiseng commented 1 year ago

how tuo fix?

photonstorm commented 1 year ago

@baiseng the guide was updated just now with more content and fixed code, so please just refresh the page to see!