Noise Power
Demonstrates how the noisePower property affects the visual intensity and contrast of Noise Game Objects.
1280 × 720
class Example extends Phaser.Scene
{
create()
{
const { width, height } = this.scale;
this.add.noise({}, width * 1 / 8, height / 2, width / 4, height);
this.add.noise({ noisePower: 0.1 }, width * 3 / 8, height / 2, width / 4, height);
this.add.noise({ noisePower: 2 }, width * 5 / 8, height / 2, width / 4, height);
this.add.noise({ noisePower: 32 }, width * 7 / 8, height / 2, width / 4, height);
}
}
const config = {
scale: { mode: Phaser.Scale.FIT },
type: Phaser.WEBGL,
parent: 'game-container',
width: 1280,
height: 720,
scene: Example
};
const game = new Phaser.Game(config);