public Ground(Point _Position, Rectangle bounds, Game _Game) : base(_Game, bounds) { width = 500; height = 200; Position = _Position; Graphic = new RectangeGraphicSolid(new Rectangle(0, 0, width, height), Color.Black, _Game); Physics = new DebugRect(Position, new Point(0, 0), width, height, DebugRect.DebugType.Physics, _Game); }
public Heart(Game game) : base(game) { // TODO: Construct any child components here LeftPressure = 15; RightPressure = 15; BodyPressure = 70; LeftLocked = false; RightLocked = false; LeftHeart = new RectangeGraphicSolid(new Rectangle(0, 0, 30, 50), Color.Blue, game); RightHeart = new RectangeGraphicSolid(new Rectangle(0, 0, 30, 50), Color.Red, game); Blood = new RectangeGraphicSolid(new Rectangle(0, 0, 30, 50), Color.Green, game); HeartBeat = game.Content.Load<SoundEffect>("heartbeat"); Game = game; }