From 8af8032e1e941dd8e34619cbfb90e1d67be4a96b Mon Sep 17 00:00:00 2001 From: Scott Westover Date: Thu, 7 Sep 2023 16:39:35 -0400 Subject: [PATCH] modified custom font demo and added credit link Signed-off-by: Scott Westover --- phaser-3/3.60/custom-fonts/README.md | 4 ++++ phaser-3/3.60/custom-fonts/src/main.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/phaser-3/3.60/custom-fonts/README.md b/phaser-3/3.60/custom-fonts/README.md index a89058c..aa27351 100644 --- a/phaser-3/3.60/custom-fonts/README.md +++ b/phaser-3/3.60/custom-fonts/README.md @@ -8,3 +8,7 @@ TODO Link to live demo: TODO + +## Credit + +The custom fonts that were used in this demo were created by [Kenney](https://www.kenney.nl/assets/kenney-fonts). diff --git a/phaser-3/3.60/custom-fonts/src/main.js b/phaser-3/3.60/custom-fonts/src/main.js index cb4e709..86192b5 100644 --- a/phaser-3/3.60/custom-fonts/src/main.js +++ b/phaser-3/3.60/custom-fonts/src/main.js @@ -12,13 +12,13 @@ class MainScene extends Phaser.Scene { const w = this.scale.width / 2; this.add .text(w, 100, 'Default Font Family', { - fontSize: 32, + fontSize: 40, color: '#ffffff', }) .setOrigin(0.5); const text = this.add .text(w, 200, 'Press Start 2P', { - fontSize: 32, + fontSize: 40, color: '#ffffff', }) .setOrigin(0.5);