@Override public Scene onLoadScene() { super.onLoadScene(); this.mMainScene.setBackground(new ColorBackground(100, 100, 100)); return this.mMainScene; }
@Override public void onLoadResources() { super.onLoadResources(); this.mBackGroundTextureRegion = TextureRegionFactory.createFromAsset( this.mBackgroundTexture, this, "basketball_court.jpg", 0, 0); this.mMenuFontTexture = new Texture(256, 256, TextureOptions.BILINEAR_PREMULTIPLYALPHA); this.mMenuFont = FontFactory.createFromAsset( this.mMenuFontTexture, this, "VeraBd.ttf", 36, true, Color.WHITE); this.mEngine.getTextureManager().loadTextures(this.mBackgroundTexture, this.mMenuFontTexture); this.mEngine.getFontManager().loadFont(this.mMenuFont); }