public static Fireball GetFireBall() { Dictionary <AnimationKey, Animation> animations = new Dictionary <AnimationKey, Animation>(); Animation animation = new Animation(3, 32, 32, 0, 0); animations.Add(AnimationKey.Down, animation); animation = new Animation(3, 32, 32, 0, 32); animations.Add(AnimationKey.Left, animation); animation = new Animation(3, 32, 32, 0, 64); animations.Add(AnimationKey.Right, animation); animation = new Animation(3, 32, 32, 0, 96); animations.Add(AnimationKey.Up, animation); Fireball fireBall = new Fireball(SceneGraph, FireBallTexture, animations); fireBall.SetCollisionSize(32, 32); return(fireBall); }
public static Fireball GetFireBall() { Dictionary<AnimationKey, Animation> animations = new Dictionary<AnimationKey, Animation>(); Animation animation = new Animation(3, 32, 32, 0, 0); animations.Add(AnimationKey.Down, animation); animation = new Animation(3, 32, 32, 0, 32); animations.Add(AnimationKey.Left, animation); animation = new Animation(3, 32, 32, 0, 64); animations.Add(AnimationKey.Right, animation); animation = new Animation(3, 32, 32, 0, 96); animations.Add(AnimationKey.Up, animation); Fireball fireBall = new Fireball(SceneGraph, FireBallTexture, animations); fireBall.SetCollisionSize(32, 32); return fireBall; }