WIP: Camera controls, WebGL setup, Procedural grass attempt (Black screen debug)
This commit is contained in:
@@ -115,7 +115,7 @@ export class AudioLoader {
|
||||
|
||||
// Common sound keys that systems expect
|
||||
const fallbackKeys = [
|
||||
'background_music',
|
||||
// 'background_music',
|
||||
'music_chill_lofi',
|
||||
'mayor_anthem',
|
||||
'zombie_satisfied',
|
||||
|
||||
@@ -125,9 +125,11 @@ export class CinematicVoiceSystem {
|
||||
return new Promise((resolve) => {
|
||||
utterance.onend = () => {
|
||||
// Restore music volume
|
||||
/*
|
||||
if (this.scene.sound && this.scene.sound.get('background_music')) {
|
||||
this.duckMusic(1.0, 800); // Restore to 100% over 800ms
|
||||
}
|
||||
*/
|
||||
resolve();
|
||||
};
|
||||
});
|
||||
@@ -251,6 +253,7 @@ export class CinematicVoiceSystem {
|
||||
* Duck/restore background music volume
|
||||
*/
|
||||
duckMusic(targetVolume, duration) {
|
||||
/*
|
||||
const music = this.scene.sound.get('background_music');
|
||||
if (!music) return;
|
||||
|
||||
@@ -260,6 +263,7 @@ export class CinematicVoiceSystem {
|
||||
duration: duration,
|
||||
ease: 'Sine.easeInOut'
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -144,7 +144,7 @@ export class DrugEconomySystem {
|
||||
|
||||
applyMarijuanaAudio(config) {
|
||||
// Change music to chill variant
|
||||
const currentMusic = this.scene.sound.get('background_music');
|
||||
const currentMusic = null; // this.scene.sound.get('background_music');
|
||||
if (currentMusic) {
|
||||
// Fade out current
|
||||
this.scene.tweens.add({
|
||||
@@ -189,7 +189,7 @@ export class DrugEconomySystem {
|
||||
duration: 2000,
|
||||
onComplete: () => {
|
||||
chillMusic.stop();
|
||||
this.scene.sound.play('background_music', { loop: true, volume: 0.5 });
|
||||
// this.scene.sound.play('background_music', { loop: true, volume: 0.5 });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -308,9 +308,9 @@ export class ElectionSystem {
|
||||
}
|
||||
|
||||
// Change music to ordered/military theme
|
||||
if (this.scene.sound && this.scene.sound.get('background_music')) {
|
||||
this.scene.sound.get('background_music').stop();
|
||||
}
|
||||
// if (this.scene.sound && this.scene.sound.get('background_music')) {
|
||||
// this.scene.sound.get('background_music').stop();
|
||||
// }
|
||||
this.scene.sound.play('mayor_anthem', { loop: true, volume: 0.5 });
|
||||
|
||||
// Unlock new features
|
||||
|
||||
Reference in New Issue
Block a user