public Player (Party par5scene,int par1x,int par2y,int par3w,int par4h) :base(par5scene,par1x,par2y,par3w,par4h) { sprite = Core.Png [0]; boundingboxes=Utils.getBoundingBoxFrom (sprite,shape); type = Magnet.Gender.Minus; }
public Entity (Party par5scene, int par1x, int par2y, int par3width, int par4height) { shape = new Rectangle (par1x, par2y, par3width, par4height); position = new Vector2 (par1x, par2y); world = par5scene; boundingboxes = new Rectangle[1]; boundingboxes [0] = new Rectangle(0,0,shape.Width,shape.Height); }
public Magnet (Gender par6type,Party par1scene, int par2x, int par3y) :base(par1scene,par2x,par3y,20,20) { type = par6type; switch (type) { case Gender.Plus: sprite = Core.Png [4]; break; case Gender.Minus: sprite = Core.Png [3]; break; } boundingboxes = Utils.getBoundingBoxFrom (sprite, shape); }
public Target (Party par1scene, int par2x,int pary) :base(par1scene,par2x,pary,20,20) { if (rand.Next (1, 3) == 1) { sprite = Core.Png [2]; type = Magnet.Gender.Minus; } else { sprite = Core.Png [5]; type = Magnet.Gender.Plus; } if (rand.Next (1, 20) == 1) isHeart = true; boundingboxes = Utils.getBoundingBoxFrom (sprite, shape); light = EffectManager.addLight (new Light (shape.X + shape.Width / 2, shape.Y + shape.Height / 2,0.5F,Color.White)); particles=new Particle[rand.Next(3,6)]; for (int i = 0; i < particles.Length; i++) { particles [i] = EffectManager.addParticle (new Particle (shape.X + shape.Width / 2 + (shape.Width / 2), shape.Y + shape.Height / 2 + (shape.Height / 2), Color.DarkOrange, Particle.Sort.Fixed)); } }