File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/core/src/com/rocketfool/rocketgame/view Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ private void drawMap(SpriteBatch batch) {
235235 texture .setWrap (Texture .TextureWrap .Repeat , Texture .TextureWrap .Repeat );
236236 texture .setFilter (Texture .TextureFilter .MipMapNearestLinear , Texture .TextureFilter .MipMapNearestLinear );
237237
238- int alpha = (int ) ((MIN_ALPHA - MAX_ALPHA ) * (Math .min (MAX_ZOOM , camera .zoom ) - MIN_ZOOM ) / (MAX_ZOOM - MIN_ZOOM )) + MAX_ALPHA ;
238+ int alpha = (int ) ((MIN_ALPHA - MAX_ALPHA ) * (Math .min (10f , camera .zoom ) - MIN_ZOOM ) / (10f - MIN_ZOOM )) + MAX_ALPHA ;
239239 //sabatch.setColor(1, 1, 1, alpha);
240240
241241 float minX = -camera .viewportWidth * 660 / 2f ;
@@ -332,7 +332,8 @@ private void drawStars(SpriteBatch batch) {
332332 Texture texture = animationStar .getKeyFrame (elapsedTime , true ).getTexture ();
333333 texture .setFilter (Texture .TextureFilter .Linear , Texture .TextureFilter .Linear );
334334
335- int alpha = (int ) ((MIN_ALPHA - MAX_ALPHA ) * (Math .min (MAX_ZOOM , camera .zoom ) - MIN_ZOOM ) / (MAX_ZOOM - MIN_ZOOM )) + MAX_ALPHA ;
335+ int alpha = (int ) ((MIN_ALPHA - MAX_ALPHA ) * (Math .min (10f , camera .zoom ) - MIN_ZOOM ) / (10f - MIN_ZOOM )) + MAX_ALPHA ;
336+
336337 batch .setColor (1 , 1 , 1 , alpha );
337338
338339 batch .draw (
You can’t perform that action at this time.
0 commit comments