bitmap text

  BitmapFont guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt");

            
            hpText = new BitmapText(guiFont, false);

            hpText.setSize(guiFont.getCharSet().getRenderedSize());
            hpText.setColor(ColorRGBA.Red);
            hpText.setText("HP:" + Integer.toString(hp));
            hpText.setLocalTranslation(0, height-160, 0);
            guiNode.attachChild(hpText);

Комментарии

Популярные сообщения из этого блога

jmonkey engine create and build andoid project

jmonkey Cloth system