Exemple #1
0
        void button_Released(object sender, TouchEventArgs e)
        {
            this.IsActive = false;
            if (this.Game1.GameScreen != null)
            {
                this.Game1.GameScreen.IsActive = false;
                this.Game1.GameScreen.Dispose();
                this.Game1.Components.Remove(this.Game1.GameScreen);
            }
            var gameScreen = new GameScreen(this.Game1);
            this.Game1.GameScreen = gameScreen;
            this.Game1.Components.Add(gameScreen);
            gameScreen.Initialize();
            gameScreen.Load();

            this.Game1.GameScreen.IsActive = true;

            this.StartButton.IsEnabled = false;
        }
Exemple #2
0
 public Target(string texturePath, int frameWidth, int frameHeight, float frameChangeInterval, GameScreen gameScreen)
     : base(texturePath, frameWidth, frameHeight, frameChangeInterval, gameScreen)
 {
     this.Paused = false;
 }
Exemple #3
0
 public Tilemap(string texturePath, GameScreen gameScreen)
     : base(texturePath, 128, 128, 1, gameScreen)
 {
 }