示例#1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            ScaleAnimation sa = (Animation as ScaleAnimation);

            if (sa != null)
            {
                Scale   = sa.Scale;
                Opacity = sa.Scale;
            }
        }
示例#2
0
文件: Player.cs 项目: mayur70/Chomp
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            ScaleAnimation sa = (Animation as ScaleAnimation);

            if (sa != null)
            {
                Scale    = sa.Scale;
                Opacity  = sa.Scale;
                Rotation = MathHelper.ToRadians(sa.Scale * 360.0f);
            }
        }
示例#3
0
 public void Hide()
 {
     Animation = new ScaleAnimation("gfx\\text\\GetReady", 1.0f, 0.0f, _scaleTime);
 }
示例#4
0
文件: Player.cs 项目: mayur70/Chomp
 public void Die()
 {
     Velocity  = Vector2.Zero;
     Animation = new ScaleAnimation("gfx\\monster\\idle\\bm_idle_1", 1.0f, 0.0f, 300);
 }
示例#5
0
文件: GameOver.cs 项目: mayur70/Chomp
 public void Show()
 {
     Animation = new ScaleAnimation("gfx\\text\\GameOver", 0.0f, 1.0f, _scaleTime);
 }