Source:
public void create() { font = new BitmapFont(); font.setColor(1f, 0f, 0.05f, 1f); font.getData().setScale(1.2f); deltaActionTimeDivisor = 10f; shapeRenderer = new ShapeRenderer(); project = ProjectManager.getInstance().getCurrentProject(); scene = ProjectManager.getInstance().getCurrentlyPlayingScene(); pathForSceneScreenshot = PathBuilder.buildScenePath(project.getName(), scene.getName()) + "/"; if (stage == null) { createNewStage(); if (DEBUG) { OrthoCamController camController = new OrthoCamController(camera); InputMultiplexer multiplexer = new InputMultiplexer(); multiplexer.addProcessor(camController); multiplexer.addProcessor(stage); Gdx.input.setInputProcessor(multiplexer); fpsLogger = new FPSLogger(); } else { Gdx.input.setInputProcessor(stage); } } else { stage.getRoot().clear(); } initScreenMode(); initStageInputListener(); physicsWorld = scene.resetPhysicsWorld(); sprites = new ArrayList<>(scene.getSpriteList()); boolean addPenActor = true; for (Sprite sprite : sprites) { sprite.resetSprite(); sprite.look.createBrightnessContrastHueShader(); stage.addActor(sprite.look); if (addPenActor) { penActor = new PenActor(); stage.addActor(penActor); addPenActor = false; } } passepartout = new Passepartout(ScreenValues.SCREEN_WIDTH, ScreenValues.SCREEN_HEIGHT, maximizeViewPortWidth, maximizeViewPortHeight, virtualWidth, virtualHeight); stage.addActor(passepartout); axes = new Texture(Gdx.files.internal("stage/red_pixel.bmp")); skipFirstFrameForAutomaticScreenshot = true; if (checkIfAutomaticScreenshotShouldBeTaken) { makeAutomaticScreenshot = project.manualScreenshotExists(SCREENSHOT_MANUAL_FILE_NAME) || scene.hasScreenshot(); } if (drawDebugCollisionPolygons) { collisionPolygonDebugRenderer.setProjectionMatrix(camera.combined); collisionPolygonDebugRenderer.setAutoShapeType(true); collisionPolygonDebugRenderer.setColor(Color.MAGENTA); } FaceDetectionHandler.resumeFaceDetection(); }

Target:
public void create() { font = new BitmapFont(); font.setColor(1f, 0f, 0.05f, 1f); font.getData().setScale(1.2f); deltaActionTimeDivisor = 10f; shapeRenderer = new ShapeRenderer(); project = ProjectManager.getInstance().getCurrentProject(); scene = ProjectManager.getInstance().getCurrentlyPlayingScene(); pathForSceneScreenshot = PathBuilder.buildScenePath(project.getName(), scene.getName()) + "/"; if (stage == null) { createNewStage(); Gdx.input.setInputProcessor(stage); } else { stage.getRoot().clear(); } initScreenMode(); initStageInputListener(); physicsWorld = scene.resetPhysicsWorld(); sprites = new ArrayList<>(scene.getSpriteList()); boolean addPenActor = true; for (Sprite sprite : sprites) { sprite.resetSprite(); sprite.look.createBrightnessContrastHueShader(); stage.addActor(sprite.look); if (addPenActor) { penActor = new PenActor(); stage.addActor(penActor); addPenActor = false; } } passepartout = new Passepartout(ScreenValues.SCREEN_WIDTH, ScreenValues.SCREEN_HEIGHT, maximizeViewPortWidth, maximizeViewPortHeight, virtualWidth, virtualHeight); stage.addActor(passepartout); axes = new Texture(Gdx.files.internal("stage/red_pixel.bmp")); skipFirstFrameForAutomaticScreenshot = true; if (checkIfAutomaticScreenshotShouldBeTaken) { makeAutomaticScreenshot = project.manualScreenshotExists(SCREENSHOT_MANUAL_FILE_NAME) || scene.hasScreenshot(); } if (drawDebugCollisionPolygons) { collisionPolygonDebugRenderer.setProjectionMatrix(camera.combined); collisionPolygonDebugRenderer.setAutoShapeType(true); collisionPolygonDebugRenderer.setColor(Color.MAGENTA); } FaceDetectionHandler.resumeFaceDetection(); }