class Level3 {
    constructor(game) {
        this.game = game;
    }

    initialize() {
        const background = new BackgroundSprite('assets/win.png', 0, 0, 800, 600);
        this.game.addSprite(background);

        const player = new Player(100, 300, 60, 60, 'assets/player.png');
        this.game.addSprite(player); // ✅ Add player to game
        this.game.camera.follow(player);

        // ✅ Set camera boundaries
        this.game.camera.worldWidth = 800;
        this.game.camera.worldHeight = 600;

        // ✅ Reset camera position
        this.game.camera.x = 0;
        this.game.camera.y = 0;
    }
}