public Wall(Vector2 Position, int Width, int Height) { rect = new Rect(Width, Height, false); rect.Position = Position; rect.IgnoreGravity = true; image = new Sprite(Position); image.Texture = new Texture2D(XNAGame.I.GraphicsDevice, Width, Height); image.Fill(Color.LimeGreen); }
public Particle(ParticleEmitter Engine, Texture2D Image, Vector2 Position, Vector2 Velocity, int Life) { engine = Engine; position = Position; velocity = Velocity; if (Life < 0) { life = 0; } else { life = Life; } image = new Sprite(); image.Position = Position; if (Image == null) { image.Texture = new Texture2D(XNAGame.Instance.GraphicsDevice, 5, 5); image.Fill(Color.White); } else { image.Texture = Image; } }