Commit d0386cee authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

Tweak to fadeout-function

parent 23746ff1
......@@ -101,7 +101,8 @@ public abstract class AbstractView extends ApplicationAdapter {
Color c = Color.WHITE;
stage.getBatch().setColor(c.r, c.g, c.b, fadeOutAlpha);
fadeOutAlpha += dt/fadeOutLength;
stage.getBatch().draw(fadeOverlayTexture, 0, 0, col_width*Help_Guides, row_height*Help_Guides);
//stage.getBatch().draw(fadeOverlayTexture, 0, 0, col_width*Help_Guides, row_height*Help_Guides);
stage.getBatch().draw(fadeOverlayTexture, cam.position.x/2, cam.position.y/2, col_width*Help_Guides * 2, row_height*Help_Guides * 2);
stage.getBatch().setColor(c);
stage.getBatch().end();
if(fadeOutAlpha >= 1){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment