public void initScoreBoard() { SimpleApplication app = getApp(); // Should be from registry, not this way AppSettings settings = app.getContext().getSettings(); // Should be from registry, not this way int numScoreRows = 4; int rowHeight = 50; int boardWidth = settings.getWidth(); int baseX = 20; int baseY = settings.getHeight() - numScoreRows * rowHeight; float textSizeMult = 0.5f; ScoreBoard sb = new ScoreBoard(app.getAssetManager(), app.getGuiNode(), baseX, baseY, boardWidth, rowHeight, numScoreRows, textSizeMult); setScoreBoard(sb); // Goofy way to do it }