Beispiel #1
0
        /// <summary>
        /// Used for initializing the engine.
        /// </summary>
        /// <param name="gameref">A reference to the game class.</param>
        public void Initialize(TPGame gameref)
        {
            GameRef        = gameref;
            TextureManager = new TPTextureManager(gameref);
            FontManager    = new TPFontManager(gameref);
            Audio          = new TPAudioManager(gameref);
            State          = new TPStateMachine();
            Input          = new TPInput();
            Rand           = new Random();

            SpriteDictionary = new Dictionary <string, TPSprite>();
            StringDictionary = new Dictionary <string, TPString>();
        }
Beispiel #2
0
        /// <summary>
        /// Used for initializing the engine. 
        /// </summary>
        /// <param name="gameref">A reference to the game class.</param>
        public void Initialize(TPGame gameref)
        {
            GameRef = gameref;
            TextureManager = new TPTextureManager(gameref);
            FontManager = new TPFontManager(gameref);
            Audio = new TPAudioManager(gameref);
            State = new TPStateMachine();
            Input = new TPInput();
            Rand = new Random();

            SpriteDictionary = new Dictionary<string, TPSprite>();
            StringDictionary = new Dictionary<string, TPString>();
        }