谁能告诉我如何在 And 引擎游戏中配置 Chart boost add 平台以在游戏中显示添加。我已经下载了 chartboost sdk,我正在尝试在 onCreateEngineOption 中配置 ChartBoost,例如 -
public EngineOptions onCreateEngineOptions()
{
camera = new BoundCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(), this.camera);
engineOptions.getAudioOptions().setNeedsMusic(true).setNeedsSound(true);//turn on the music and sound option
engineOptions.getRenderOptions().getConfigChooserOptions().setRequestedMultiSampling(true);
engineOptions.setWakeLockOptions(WakeLockOptions.SCREEN_ON);//tell the engine to always keep the screen unloced while game is running
engineOptions.getRenderOptions().setDithering(true);//enable the Dithering for the whole game by default
return engineOptions;
// Configure Chartboost
this.cb = Chartboost.sharedChartboost();
String appId = "YOUR_APP_ID";
String appSignature = "YOUR_APP_SIGNATURE";
this.cb.onCreate(this, appId, appSignature, null);
}
我的游戏崩溃了......谢谢!