public void MoveHighscores(GameTime gameTime, GraphicsDevice graphicsDevice)
{
posHighscoreBoard = posHighscoreBoard + velocityHighscores /** (float)gameTime.ElapsedGameTime.TotalSeconds*/;
int MaxX =
graphicsDevice.Viewport.Width - 220;
int MinX = 0;
int MaxY =
graphicsDevice.Viewport.Height - 370;
int MinY = 0;
if (posHighscoreBoard.X >= MaxX)
{
velocityHighscores.X *= -1;
posHighscoreBoard.X = MaxX;
}
else if (posHighscoreBoard.X < MinX)
{
velocityHighscores.X *= -1;
posHighscoreBoard.X = MinX;
}
if (posHighscoreBoard.Y >= MaxY)
{
velocityHighscores.Y *= -1;
posHighscoreBoard.Y = MaxY;
}
else if (posHighscoreBoard.Y < MinY)
{
velocityHighscores.Y *= -1;
posHighscoreBoard.Y = MinY;
}
}