This is my current render method at my level in my Libgdx game. I'm trying to draw a BitmapFont in the upper right upper corner, but all I get is a bunch of white boxes.
@Override public void render( float delta ) { Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); this.getBatch().begin();
I would like to add a rating font to some actor and then make the scene .addActor (myScore), but I don't know how to do it. I followed the Steigert tutorial to create the main class of the game, which creates an instance of the scene, a font, in the AbstractLevel class, which then expands to this level.
So far I have not used any custom font, just an empty new BitmapFont (); to use the default Arial font. Later I would like to use my own more fancy font.
Peter Poliwoda
source share