public Player(Game game) : base(game) { Position = new Point(); View = new DebugRect(Position, new Point(25,25), 50, 50, DebugRect.DebugType.View, game); Physics = new DebugRect(Position,new Point(15, 20), 30, 40, DebugRect.DebugType.Physics, game); }
public Player(Game game, Rectangle bounds) : base(game, bounds) { Position = new Point(bounds.X, bounds.Y); width = bounds.Width; height = bounds.Height; View = new DebugRect(Position, new Point(0, 0), width, height, DebugRect.DebugType.View, game); Physics = new DebugRect(Position, new Point(0, 0), width, height, DebugRect.DebugType.Physics, game); this.game = game; }
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); }