就是这个

1.Sprite

    Sprite spriteA = Sprite.make(R.drawable.spriteA);
   removeChild(spriteA , true);
   addChild(spriteA);
   spriteA.setPosition(MAIN_MENU_X + 40, MAIN_MENU_Y_TOP + y_off);
   spriteA.setZOrder(1);
  

2.MWSprite

   MWSprite mwsprite = MWSprite.make(R.raw.music1, 32, mm);
   mwsprite.setUnitInterval(0.1f);
   mwsprite.setLoopCount(-1);
   mwsprite.setPosition(s.width / 2, s.height / 2 - 200);


3.Texture2D
  
   Texture2D俗称纹理.
   Texture2D mm = Texture2D.makePNG(R.drawable.mm);


4.Menu

TargetSelector[] quit_Selector = { new TargetSelector(this,
"State_Exit", null) };

Menu menu1 = addMenu(1, "按键前的sprite", "按键后的sprite", quit_Selector, s.width - 50, 50, 1, 0);

menu1 .setZOrder(1);
addChild(menu1 );

你可能感兴趣的:(就是这个)