This commit is contained in:
2025-12-08 18:25:50 +01:00
parent 3096490a0c
commit 0323a3279b
7 changed files with 1622 additions and 12 deletions

View File

@@ -49,11 +49,12 @@ class StoryScene extends Phaser.Scene {
{ label: '▶ NEW GAME', color: '#00ff41', action: () => this.startNewGame() },
{ label: '📁 LOAD GAME', color: '#4477ff', action: () => this.loadGame() },
{ label: '⚙️ SETTINGS', color: '#ffaa00', action: () => this.showSettings() },
{ label: '♿ ACCESSIBILITY', color: '#44ff44', action: () => this.showAccessibility() },
{ label: '❌ EXIT', color: '#ff4444', action: () => this.exitGame() }
];
const startY = 250;
const spacing = 80;
const startY = 230;
const spacing = 75;
buttons.forEach((btn, index) => {
const y = startY + (index * spacing);
@@ -208,6 +209,32 @@ class StoryScene extends Phaser.Scene {
alert('Settings - Use ⚙️ button in-game!');
}
showAccessibility() {
console.log('♿ Opening Accessibility Menu...');
// Create accessibility quick menu
const options = [
'♿ ACCESSIBILITY OPTIONS',
'',
'1. High Contrast Mode',
'2. Large Text Mode',
'3. Color Blind Mode',
'4. Screen Reader Support',
'5. Reduce Flashing (Epilepsy)',
'6. One-Handed Controls',
'7. Audio Cues',
'',
'Full accessibility settings available in-game (ESC → Settings)',
'',
'Tip: Press 1-7 to toggle these features'
];
alert(options.join('\n'));
// TODO: Implement full accessibility menu
// For now, just show information
}
exitGame() {
console.log('❌ Exiting...');
if (window.close) {