Skip to content

Commit

Permalink
added finished source code for nine slice demo
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Westover <[email protected]>
  • Loading branch information
scottwestover committed Jul 28, 2023
1 parent 9196984 commit 9cefdd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/3.60/nine-slice-built-in/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Game extends Phaser.Scene {
const { height, width } = this.scale;

this.add.image(width / 2, height / 2, AssetKeys.PANEL, 0);
this.add.nineslice(width / 2, height / 2, AssetKeys.PANEL, 0, 600, 400, 32, 32, 32, 32);
}
}

Expand Down

0 comments on commit 9cefdd4

Please sign in to comment.