Skip to content

Commit

Permalink
added informative text for swipe demo
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Westover <[email protected]>
  • Loading branch information
scottwestover committed Jan 8, 2024
1 parent 5d04763 commit 2dc51ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phaser-3/3.60/mobile-swipe/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ class GameScene extends Phaser.Scene {
});
},
});

this.add
.text(this.scale.width / 2, 550, 'Swipe the screen to move the arrow', {
align: 'center',
fontSize: '22px',
wordWrap: {
width: this.scale.width - 50,
},
})
.setOrigin(0.5);
}
}

Expand Down

0 comments on commit 2dc51ef

Please sign in to comment.