Пример #1
0
        /// <summary>
        /// Effectを初期化
        /// </summary>
        private void InitEffect()
        {
            townEffect = new TownEffect(
                new Vector2(Def.WindowDef.WINDOW_WIDTH / 2 + 300, 300),
                gameDevice);
            townEffect.Initialize();

            effectTimer = new Timer(1.2f);
            effectTimer.Initialize();

            townEffect.SetScaleRate(effectTimer.Rate() * 1.5f + 1);
        }
Пример #2
0
 /// <summary>
 /// Effectを更新
 /// </summary>
 private void UpdateEffect()
 {
     effectTimer.Update();
     townEffect.SetScaleRate(effectTimer.Rate() * 1.5f + 1);
 }