Project

General

Profile

« Previous | Next » 

Revision fec1442f

Added by Leszek Koltunski about 5 years ago

Move the defualt state of an Object to be in the center of the screen (rather than the bottom-left like before)

View differences:

src/main/java/org/distorted/library/main/DistortedScreen.java
54 54
  private long lastTime=0;
55 55
  private long[] durations;
56 56
  private int currDuration;
57
  private static Static3D mMoveVector = new Static3D(5,-5,0);
57
  private static Static3D mMoveVector = new Static3D(0,0,0);
58 58
  private static MatrixEffectMove mMoveEffect = new MatrixEffectMove(mMoveVector);
59 59
  ///// END DEBUGGING //////////////////////////
60 60

  
......
107 107
      fpsCanvas.drawText(fpsString, FPS_W/2, 0.75f*FPS_H, mPaint);
108 108
      fpsTexture.setTexture(fpsBitmap);
109 109

  
110
      mMoveVector.set2(mHeight-FPS_H-5);
110
      mMoveVector.set( (-mWidth+FPS_W)/2 +5, (mHeight-FPS_H)/2 -5, 0);
111 111

  
112 112
      lastTime = time;
113 113
      }

Also available in: Unified diff