Phaser 3 Sprite Snippets

Preload an Image
Description:Use this in the preload function of your scene
Example:this.load.image("key", "path");

Add An Image
Description:adds an image to the scene
Example:this.face = this.add.image(game.config.width / 2, game.config.height / 2, "face");

Add A Sprite
Description:adds an sprite to the scene. Use in the create function of your scene.
Example:this.face = this.add.image(game.config.width / 2, game.config.height / 2, "face");