Example #1
0
        public void Setup(Game game)
        {
            GlobalServices.SetGame(game);

            this.PlayerController = new PlayerController(game);
            game.Components.Add(this.PlayerController);
            GlobalServices.SetPlayerInput(this.PlayerController);

            var soundPlayer = new NullSoundPlayer();

            GlobalServices.SetSoundPlayer(soundPlayer);

            var spriteLibrary = new DummySpriteLibrary();

            GlobalServices.SetSpriteLibrary(spriteLibrary);
        }