src/LevelSelect.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 > 50 && mx < 505 && my > 182 && my < 234){
            h1 = true;
        }else if(mx > 50 && mx < 335 && my > 269 && my < 332){
            h2 = true;
        }else if(mx > 50 && mx < 356 && my > 358 && my < 416){
            h3 = true;
        }else if(mx > 600 && mx < 760 && my > 530 && my < 560){
            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 > 50 && mx < 505 && my > 182 && my < 234 ) { h1 = true ; } else if ( mx > 50 && mx < 335 && my > 269 && my < 332 ) { h2 = true ; } else if ( mx > 50 && mx < 356 && my > 358 && my < 416 ) { h3 = true ; } else if ( mx > 600 && mx < 760 && my > 530 && my < 560 ) { h4 = true ; } else { h1 = false ; h2 = false ; h3 = false ; h4 = false ; } }
Update that is called each frame
Update that is called each frame