Example #1
0
        protected PowerUp(DecimalPoint location, GameWorld gameWorld)
        {
            Location             = location;
            GameWorld            = gameWorld;
            GameWorld.Collision += gameWorld_Collision;

            Inertia        = new DecimalPoint(0, 0);
            MotionBehavior = new StationaryMotionBehavior(this, gameWorld);
            Paralax        = Paralax.Middleground;
            DrawBehavior   = new TopDownRotationDrawBehavior(this);

            IsPhysicalObject = false;
        }
Example #2
0
 public SpellShieldNova(Character source, GameWorld gameWorld, int range) : base(source, gameWorld, range)
 {
     Image = Properties.Resources.SpellNova;
     DrawBehavior.IsCircle = true;
     MotionBehavior        = new StationaryMotionBehavior(this, gameWorld);
 }