public bool Intersects(floatRectangle Rectangle) { return((Rectangle.X < this.X + this.Width) && (this.X < (Rectangle.X + Rectangle.Width)) && (Rectangle.Y < this.Y + this.Height) && (this.Y < Rectangle.Y + Rectangle.Height)); }
public Beat(float beatPerSec, Texture2D texture) { this.beatPerSec = beatPerSec; this.texture = texture; rect = new Rectangle(50, 450, 2, 75); r = new floatRectangle(-10, 600 - 100, 2, 75); float secPerBeat = 1000 / beatPerSec; speed = 16 / (secPerBeat / difficulty); }