예제 #1
0
  public void logic() {
    if (GameViews.gameview.stackView == null && gameMenuListener < 1) gameMenuListener += .05;
    if (GameViews.gameview.stackView != null && gameMenuListener > 0) gameMenuListener -= .05;

    Bloom bloom = GameViews.bloom;
    bloom.setBaseIntesity(baseSaturation * gameMenuListener);
    bloom.setBloomSaturation((bloomSaturation - 0.2f) * gameMenuListener + 0.2f);

    setPost();
  }
예제 #2
0
 private void setPost() {
   String post = (String) RPG.maps.getProp().get("POST");
   if (post != null && post.length() != 0) {
     baseSaturation = 1f;
     bloomIntesity = 0.2f;
     bloomSaturation = 1.1f;
     threshold = 0f;
     GameViews.vignette.setEnabled(false);
   } else if (type == Weather.rain) {
     baseSaturation = 0.7f;
     bloomIntesity = 0.8f;
     bloomSaturation = 0.2f;
     threshold = 0f;
     GameViews.vignette.setEnabled(true);
   } else if (type == Weather.no) {
     baseSaturation = 1f;
     bloomIntesity = 0.7f;
     bloomSaturation = 1.2f;
     threshold = 0.3f;
     GameViews.vignette.setEnabled(true);
   }
   Bloom bloom = GameViews.bloom;
   bloom.setBaseSaturation(baseSaturation);
   bloom.setBloomIntesity(bloomIntesity);
   bloom.setBloomSaturation(bloomSaturation);
   bloom.setThreshold(threshold);
   bloom.setEnabled(true);
 }