Пример #1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
            components.Update(gameTime);
            animProvider.Update(gameTime.ElapsedGameTime.TotalMilliseconds);

            if (isEnabled && Game.Input.IsPressKeeped)
            {
                isEnabled = false;
                startSound.Play(0.5f, 0, 0);
                animProvider.CreateChain()
                    .Blink(label, 100, 10)
                    .Then(() =>
                    {
                        var gameScene = new GameScene(Game);
                        Game.SceneManager.Push(new BlackoutSwitchScene(Game, gameScene));
                    });
            }
        }
Пример #2
0
 public GameLogic(GameBase game, GameScene scene, double textureScale)
 {
     this.game = game;
     this.scene = scene;
     this.textureScale = textureScale;
 }
Пример #3
0
 public ShowerSpecial(GameBase game, GameScene scene, double textureScale)
     : base(game, scene, textureScale)
 {
 }
Пример #4
0
 public PressureSpecial(GameBase game, GameScene scene, double textureScale)
     : base(game, scene, textureScale)
 {
 }
Пример #5
0
 private void RetryPressed(object sender, EventArgs e)
 {
     var next = new GameScene(Game);
     Game.SceneManager.Push(new BlackoutSwitchScene(Game, next));
 }
Пример #6
0
 public ChristmasSpecial(GameBase game, GameScene scene, double textureScale)
     : base(game, scene, textureScale)
 {
 }
Пример #7
0
 public BiforkSpecial(GameBase game, GameScene scene, double textureScale)
     : base(game, scene, textureScale)
 {
 }