little changes

This commit is contained in:
2023-10-11 10:31:01 +05:30
parent df9a03515e
commit 515ca18fcc
3 changed files with 6 additions and 7 deletions

View File

@@ -262,7 +262,7 @@ class MyGame extends Phaser.Scene {
// Calculate responsive font size based on screen width
const responsiveFontSize = (window.innerWidth / 950) * baseFontSize; // Adjust 800 to your desired reference width
const descrptText = this.add.text(screenCenterX, 70, data.description, {
font: `${responsiveFontSize}px quicksand`,
font: `600 ${responsiveFontSize}px Quicksand`,
fill: '#7c4c23',
}).setOrigin(0.5);