Ejemplo n.º 1
0
 protected Block NewRectangleBlock(Vector2 position, int width, int height)
 {
     var block = new Block(game, null, position, width, height);
     return block;
 }
Ejemplo n.º 2
0
        private bool ObstacleHit(Block obstacle)
        {
            if (this.Intersects(obstacle))
            {
                this.Velocity *= this.DetermineVelocityAndSetPositionFrom(obstacle);

                return true;
            }

            return false;
        }