2829303132333435363738
public void render(float v) { GL20 gl = Gdx.graphics.getGL20(); gl.glClear(GL20.GL_COLOR_BUFFER_BIT); fps.setText("" + Gdx.graphics.getFramesPerSecond()); road.update(v); road.render(stage.getCamera()); stage.act(); stage.draw(); }