src/Highscore.java
/**
     * Draws all graphics per frame
     * @param g Graphics reference
     */
Draws all graphics per frame
@param g Graphics reference
Draws all graphics per frame @param g Graphics reference
public void draw(Graphics g){
        if(h2) g.drawImage(i2,0,0,null);
        else if(h3) g.drawImage(i3,0,0,null);
        else g.drawImage(image,0,0,null);
        g.setColor (Color.white);
        g.setFont(new Font("Lato",Font.PLAIN, 15));
        for (int i = 0; i < 3; i++)
        {
          g.drawString ("Level " + (i + 1), i * 200 + 145, 125);
          for (int x = 0; x < 10; x++)
          {
            if (game.highscores [i].get (x) == -1)
            {
              g.drawString ("  -", i * 200 + 160, x * 30 + 175);
            }
            else
            {
              g.drawString (Integer.toString (game.highscores [i].get (x)),i * 199 + 110, x * 30 + 175);
              g.drawString ("-   " + game.usernames [i].get (x), i * 199 + 170, x * 30 + 175);
            }
          }
        }
    }
public void draw ( Graphics g ) { if ( h2 ) g . drawImage ( i2 , 0 , 0 , null ) ; else if ( h3 ) g . drawImage ( i3 , 0 , 0 , null ) ; else g . drawImage ( image , 0 , 0 , null ) ; g . setColor ( Color . white ) ; g . setFont ( new Font ( "Lato" , Font . PLAIN , 15 ) ) ; for ( int i = 0 ; i < 3 ; i ++ ) { g . drawString ( "Level " + ( i + 1 ) , i * 200 + 145 , 125 ) ; for ( int x = 0 ; x < 10 ; x ++ ) { if ( game . highscores [ i ] . get ( x ) == - 1 ) { g . drawString ( "  -" , i * 200 + 160 , x * 30 + 175 ) ; } else { g . drawString ( Integer . toString ( game . highscores [ i ] . get ( x ) ) , i * 199 + 110 , x * 30 + 175 ) ; g . drawString ( "-   " + game . usernames [ i ] . get ( x ) , i * 199 + 170 , x * 30 + 175 ) ; } } } }
Draws all graphics per frame
 @param g Graphics reference
Draws all graphics per frame @param g Graphics reference