Ejemplo n.º 1
0
    protected override void LoadContent()
    {
        var spriteRenderer = new SpriteRenderer(graphics, Content);
        prompt = new Prompt(spriteRenderer, Content);
        messageBox = new MessageBox(Content, spriteRenderer);
        var sounds = new Sounds();
        sceneManager = new SceneManager(new LoopTracker(sounds),
                                        new MessagePromptCoordinator(prompt, messageBox));
        var sceneFactory = new SceneFactory(sceneManager, spriteRenderer);

        // create the scene objects and preload their content
        sceneManager.LoadAndStart(sceneFactory);
    }