Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
        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);
        }