src/Menu.java
/**
     * Update that is called each frame
     */
Update that is called each frame
Update that is called each frame
public void update(){
        int mx = MouseInput.getX(game);
        int my = MouseInput.getY(game);
        if(mx > 440 && mx <605 && my > 375 && my < 420){
            h1 = true;
        }else if(mx > 440 && mx <627 && my > 430 && my < 467){
            h2 = true;
        }else if(mx > 440 && mx <505 && my > 482 && my < 517){
            h3 = true;
        }else if(mx >= 670 && mx <= 775 && my >= 500 && my <= 583){
            h4 = true;
        }else{
            h1 = false;
            h2 = false;
            h3 = false;
            h4 = false;
        }
    }
public void update ( ) { int mx = MouseInput . getX ( game ) ; int my = MouseInput . getY ( game ) ; if ( mx > 440 && mx < 605 && my > 375 && my < 420 ) { h1 = true ; } else if ( mx > 440 && mx < 627 && my > 430 && my < 467 ) { h2 = true ; } else if ( mx > 440 && mx < 505 && my > 482 && my < 517 ) { h3 = true ; } else if ( mx >= 670 && mx <= 775 && my >= 500 && my <= 583 ) { h4 = true ; } else { h1 = false ; h2 = false ; h3 = false ; h4 = false ; } }
Update that is called each frame
Update that is called each frame