Multi-Scene Desktop Environment
Demonstrates a window-based desktop environment using multiple simultaneous Scenes. Each 'window' is a separate Scene instance mapped to a draggable Zone using camera viewports.
1024 × 768
const config = {
scale: { mode: Phaser.Scale.FIT },
type: Phaser.WEBGL,
width: window.innerWidth,
height: window.innerHeight,
backgroundColor: '#0055aa',
parent: 'game-container',
scene: Controller,
physics: {
default: 'arcade',
arcade: {
debug: false,
gravity: { y: 0 }
}
}
};
const game = new Phaser.Game(config);
window.addEventListener('resize', function (event) {
// game.resize(window.innerWidth, window.innerHeight);
}, false);