wss15 #6

Merged
suvo merged 42 commits from wss15 into master 2024-04-23 12:52:16 +00:00
Showing only changes of commit 06709e02d7 - Show all commits

View File

@@ -300,7 +300,7 @@ import Layout from '../../layouts/Layout.astro';
]; ];
const screenCenterX = this.cameras.main.worldView.x + this.cameras.main.width / 2; const screenCenterX = this.cameras.main.worldView.x + this.cameras.main.width / 2;
// Base font size for your text // Base font size for your text
const baseFontSize = 30; const baseFontSize = 20
// Calculate responsive font size based on screen width // Calculate responsive font size based on screen width
const responsiveFontSize = (window.innerWidth / 950) * baseFontSize; // Adjust 800 to your desired reference width const responsiveFontSize = (window.innerWidth / 950) * baseFontSize; // Adjust 800 to your desired reference width
const descrptText = this.add.text(screenCenterX, 76, data.description, { const descrptText = this.add.text(screenCenterX, 76, data.description, {