public Hazard(Texture2D texture, Vector2 position, float width, float height) { this.texture = texture; this.position = position; bounds = new BoundingRectangle(position, width, height); }
public Hazard(Texture2D texture, float width, float height) { this.texture = texture; position = new Vector2(0, 0); bounds = new BoundingRectangle(position, width, height); }
public Cell(Maze maze, BoundingRectangle bounds) { this.maze = maze; Bounds = bounds; }
/// <summary> /// Constructs a new platform /// </summary> /// <param name="bounds">The platform's bounds</param> /// <param name="sprite">The platform's sprite</param> public Platform(BoundingRectangle bounds, Sprite sprite) { this.bounds = bounds; this.sprite = sprite; tileCount = (int)bounds.Width / sprite.Width; }
public Lane(Game1 game, int id) { this.game = game; laneID = id; Bounds = new BoundingRectangle(); }