Example #1
0
        //-----------------------------------------------------------------------------
        // Content
        //-----------------------------------------------------------------------------

        // LoadContent will be called once per game and is the place to load
        // all of your content.
        protected override void LoadContent()
        {
            isContentLoaded = false;

            try {
                Console.WriteLine("Begin Load Content");

                // Create a new SpriteBatch, which can be used to draw textures.
                spriteBatch = new SpriteBatch(GraphicsDevice);

                AudioSystem.Initialize();
                Resources.Initialize(Content, GraphicsDevice);

                game.LoadContent(Content, this);

                base.LoadContent();

                Console.WriteLine("End Load Content");
                isContentLoaded = true;
            }
            catch (LoadContentException e) {
                //Console.WriteLine("LOAD CONTENT EXCEPTION: " + e.Message);
                e.PrintMessage();
            }
        }
 private void Start()
 {
     //- entry point!
     slotMachine.onEstablished += Launch;
     slotMachine.Initialize();
     audioSystem.Initialize();
     StartLoadingSymbols();
 }