コード例 #1
0
  @Override
  public Scene onLoadScene() {
    super.onLoadScene();
    this.mMainScene.setBackground(new ColorBackground(100, 100, 100));

    return this.mMainScene;
  }
コード例 #2
0
  @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);
  }