Project

General

Profile

« Previous | Next » 

Revision 5b60eb06

Added by Leszek Koltunski almost 2 years ago

Stars Overlay: implement zero and negative numbers of new stars.

View differences:

src/main/java/org/distorted/overlays/OverlayStars.java
48 48
public class OverlayStars extends OverlayGeneric implements EffectListener
49 49
{
50 50
   private static final int DUR_APP =  1500;
51
   private static final int DUR_MOV =  13000;
51
   private static final int DUR_MOV =  3000;
52 52
   private static final int DUR_GLO =   600;
53 53

  
54 54
   private ListenerOverlay mListener;
......
82 82
      float heighS = mRandom.nextFloat()*mHeight*0.2f;
83 83
      float heighM = (mRandom.nextFloat()-0.5f)*mHeight*0.2f;
84 84

  
85
      Static3D pointS = new Static3D(0,mHeight*0.55f+heighS,0);
85
      Static3D pointS = new Static3D(widthS,mHeight*0.55f+heighS,0);
86 86
      Static3D pointM = new Static3D(widthM,mHeight*0.25f+heighM,0);
87 87
      Static3D pointE = new Static3D(0,0,0);
88 88
      Static3D pointF = new Static3D(0,0,-10000);
......
276 276
      mListener= listener;
277 277
      DataStars stars = (DataStars)data;
278 278
      mTotalStars = stars.getTotal();
279
      mNewStars   = -stars.getNew();
279
      mNewStars   = stars.getNew();
280 280
      Resources res = stars.getResources();
281 281
      mWidth = mScreen.getWidth();
282 282
      mHeight= mScreen.getHeight();

Also available in: Unified diff