Esempio n. 1
0
        public static void Initialize()
        {
            r = new Random();

            bloodSplashSmall = new AnimatedParticle(
                new Bitmap(@"assets\Sprites\BLOOD\blood_splash_small.png"),
                1, 0, 5, new Size(64, 64));
            bloodSplashMedium = new AnimatedParticle(
                new Bitmap(@"assets\Sprites\BLOOD\blood_splash_medium.png"),
                1, 0, 9, new Size(64, 64));
            bloodSplashBig = new AnimatedParticle(
                new Bitmap(@"assets\Sprites\BLOOD\blood_splash_big.png"),
                1, 0, 9, new Size(128, 128));


            shellGauge12 = new StaticParticle(
                new Bitmap(@"assets\Sprites\Weapons\gun_shells.png"),
                0, new Size(4, 20));
            shell762 = new StaticParticle(
                new Bitmap(@"assets\Sprites\Weapons\gun_shells.png"),
                1, new Size(4, 20));
            shell919 = new StaticParticle(
                new Bitmap(@"assets\Sprites\Weapons\gun_shells.png"),
                2, new Size(4, 20));


            wallDust = new AnimatedParticle(
                new Bitmap(@"assets\Sprites\SMOKE\bullet_smoke.png"),
                1, 0, 5, new Size(13, 25));

            exit = new StaticParticle(
                new Bitmap(@"assets\Sprites\exit.png"), 0, new Size(96, 96));
        }
 public GunShellParticleUnit(StaticParticle content, Vector startPosition, Vector directionVector, float angle)
 {
     this.content         = content;
     position             = startPosition;
     shellDirectionVector = directionVector.GetNormal().Normalize() * 5 + new Vector(angle, -angle) / 10;
     Angle = angle;
 }
Esempio n. 3
0
 public override void ClearContent()
 {
     content = null;
 }
Esempio n. 4
0
 public AutoBurnParticleUnit(StaticParticle content, Vector startPosition, float angle)
 {
     this.content   = content;
     CenterPosition = startPosition;
     Angle          = angle;
 }
Esempio n. 5
0
        public static AbstractParticleUnit CreateDeadMenBody(StaticParticle body, Vector position, Vector bodyDirection)
        {
            var angle = Vector.GetAngle(bodyDirection, new Vector(1, 0));

            return(new AutoBurnParticleUnit(body, position, angle));
        }