@Override public void show() { logger = new FPSLogger(); batch = new SpriteBatch(); // playButton = new Sprite(new Texture(Gdx.files.internal("ui/play.png"))); // pauseButton = new Sprite(new Texture(Gdx.files.internal("ui/pause.png"))); font = Assets.getInstance().getFont(); tweenFont = Assets.getInstance().getFont(); tweenFont.setColor(Color.GREEN); tweenFont.setX(300); tweenFont.setY(780); manager = new TweenManager(); stage = new Scena(this); matriceLitere = Assets.getInstance().getMatriceLitere(); camera = new OrthographicCamera(); camera.position.set(480 / 2, 800 / 2, 0); camera.update(); shapeRend = new ShapeRenderer(); viewPort = new StretchViewport(480, 800); viewPort.setCamera(camera); stage.setViewport(viewPort); for (int i = 10; i >= 0; i--) { for (int j = 0; j < 7; j++) { stage.addActor(matriceLitere[i][j]); } } Gdx.input.setInputProcessor(stage); stage.unfocusAll(); }
public void setFontCoordinates(float x, float y) { tweenFont.setX(x); tweenFont.setY(y); }