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