public void draw(Context2d context) {
root.draw(context);
}
@Override
public void onScreen() {
Point center=new Point(getGameWidth()/2,getGameHeight()/2);
clickLabel=new GameLabel(new Point(center.getX(),center.getY()+32), TextAlign.CENTER, TextBaseline.MIDDLE, "click here to continue", ASBOTXConfigs.Color.WHITE, clickTextFont);
root=new GroupLayer();
if(level.hasHint()){
this.button=new HintButton(new Point(center.getX(),center.getY()+225));
root.addComponentOnLayer(button);
}
root.addComponentOnLayer(new GameLabel(center, TextAlign.CENTER, TextBaseline.MIDDLE, "Pause", ASBOTXConfigs.Color.WHITE, pauseTextFont));
root.addComponentOnLayer(clickLabel);
root.addComponentOnLayer(new Glass(getGameWidth(),getGameHeight()));