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 ExpiringAnimatedParticleUnit(AnimatedParticle content, Vector position, float angle) { this.content = content; CenterPosition = position; Angle = angle; framesAmount = content.FramesAmount; framePeriodInTicks = content.FramePeriodInTicks; currentFrame = 0; ticksFromLastFrame = 0; }
public BloodSplashParticleUnit(AnimatedParticle content, Vector position, float angle, int frameToBurn) { this.content = content; CenterPosition = position; Angle = angle; framesAmount = content.FramesAmount; framePeriodInTicks = content.FramePeriodInTicks; currentFrame = 0; ticksFromLastFrame = 0; this.frameToBurn = frameToBurn; }
public override void ClearContent() { content = null; }