public ExplotionView(GraphicsDevice device,  ContentManager content, ExplotionUpdater explotionUpdater)
        {
            this.explotionUpdater = explotionUpdater;
            this.device = device;
            this.content = content;
            camera = new Camera(device);
            spriteBatch = new SpriteBatch(device);

            explotionTexture = content.Load<Texture2D>("explosion.png");
        }
Beispiel #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            exploionUpdater = new View.ExplotionUpdater();
            explotionView = new View.ExplotionView(GraphicsDevice, Content, exploionUpdater);

            System.Timers.Timer aTimer;
            aTimer = new System.Timers.Timer();
            aTimer.Elapsed += new ElapsedEventHandler(ResetExplotion);
            aTimer.Interval = 1500;
            aTimer.Enabled = true;
        }