- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在我的 Cocos2D iPhone 游戏中实现 OpenFeint,但有一些奇怪的事情我没有找到解决方法。这是我初始化 OpenFeint 时的样子: http://img842.imageshack.us/img842/8564/screenshot20100926at520.png这是初始化的代码:
[director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft], OpenFeintSettingDashboardOrientation,
@"NAME", OpenFeintSettingShortDisplayName,
[NSNumber numberWithBool:NO], OpenFeintSettingEnablePushNotifications,
[NSNumber numberWithBool:YES], OpenFeintSettingAlwaysAskForApprovalInDebug,
[NSNumber numberWithBool:YES], OpenFeintSettingDisableUserGeneratedContent, nil];
[OpenFeint initializeWithProductKey:@"PRODUCTKEY" andSecret:@"SECRET"
andDisplayName:@"NAME" andSettings:settings andDelegates: [OFDelegatesContainer containerWithOpenFeintDelegate:self]];
[[CCDirector sharedDirector] runWithScene: [MainMenuScene node]];
最佳答案
我在几个地方看到过你的帖子,因为我遇到了和你一样的问题。我刚刚为你找到了一个可能的解决方案,并想我会回复你。似乎在某些情况下 OpenFeint 无法访问键窗口,在这种情况下,它会创建自己的窗口,该窗口可能不会像您设置的那样运行。解决方案是通过将其添加到设置中来让 OpenFeint 知 Prop 体要跟踪哪个窗口。我的设置如下,如您所见,我使用键控窗口添加了“OpenFeintSettingPresentationWindow”设置。这样做之后,效果非常好。希望这有帮助!
NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight], OpenFeintSettingDashboardOrientation,
window, OpenFeintSettingPresentationWindow,
@"ComingSoon", OpenFeintSettingShortDisplayName,
[NSNumber numberWithBool:YES], OpenFeintSettingEnablePushNotifications,
nil];
关于iphone - OpenFeint 仅显示在屏幕的一半上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3800237/
我正在尝试在我的 Cocos2D iPhone 游戏中实现 OpenFeint,但有一些奇怪的事情我没有找到解决方法。这是我初始化 OpenFeint 时的样子: http://img842.imag
我有一个场景,可以同时获得 > 1 项成就。有没有人遇到过使用 OpenFeint 显示它们的好解决方案?现在 OpenFeint 显示 2 个彼此重叠的内容——对用户来说没有多大帮助。我想知道 Op
我想为我的游戏得分添加全局排行榜。 您会推荐 Game Center 或 OpenFeint 来实现此功能吗? 建立全局排行榜需要什么?服务器是否由服务托管? 谢谢 最佳答案 如果可以的话,使用两个网
我是 OpenFeint 的新手,实际上今天开始将它集成到我的游戏中。我无法理解每个使用 OpenFeint 的开发人员可能应该知道的一件简单的事情。以下是OpenFeint官方教程解锁成就的例子:
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
我的应用程序中集成了游戏中心和开放假 Action 。当出现通知告诉您已成功登录时,打开的假 Action 会与游戏中心通知重叠。如何将通知移至底部。我看到了文档,但我一生都无法弄清楚如何让它工作。我
我在我的安卓游戏中集成了 OpenFeint,但它会自动加载并在游戏开始时要求启用或禁用 openfeint。如果 Internet 连接速度很慢,则 openfeint 响应时间过长。 如何停止自动
我希望在我的 Android 程序中使用其中一个社交网络。 对我来说最重要的是能够建立一个连续的领导板,玩家可以根据自己对其他人的输赢来上下移动。这个想法是让玩家与其他人正面交锋。胜者得分,败者失分。
Android 版 OpenFient 和 Scoreloop 之间的任何比较? 最佳答案 在编写我们使用“社交评分系统”的最新游戏之前,我找不到 OpenFeint 和 Scoreloop for
我正在读这个:http://www.openfeint.com/ofdeveloper/index.php/kb/article/000089 ,并且似乎表明使用 OpenFeint 实现 GameC
我正在尝试将 OpenFeint 2.12.5 集成到我的应用程序中。我已经读过this tutorial和 this one ..我读了Getting Started文档中的页面并遵循其指示。 我使
如果用户接受 OpenFeint,这很容易,因为将调用 offlineUserLoggedIn 或 userLoggedIn 委托(delegate)方法。如果用户拒绝 OpenFeint,似乎没有任
我有兴趣开发一款安卓回合制在线游戏。我读到 OpenFeint 可以做到这一点,但我没有找到任何库。有人知道这方面的教程吗?还有其他选择吗? 我对 WiFi 或蓝牙解决方案不感兴趣,因为用套接字解决这
我想在 MonoTouch 项目中使用 OpenFeint。我没有创建适当绑定(bind)以将第三方 Objective-C 库与 Mono 结合使用的经验。读书this Xamarin 网站上的文章
我想将 OpenFeint 集成到一个 Android 应用程序中,因为我有一个我想与之交互的现有 iPhone 游戏。 但是,当我尝试在我的 Android 项目中添加 OpenFeint 时,示例
我正在尝试为 iOS 创建一个 Openfeint 静态库,以便在仅具有 C++ 调用的应用程序中使用它。当我尝试运行链接了该库的 cocos2d-x 测试项目时,该应用程序将因任何 OpenFein
我正在尝试将 OpenFeint 2.12.2 集成到我的游戏中,所有内容都会编译和链接,但在运行时它会在函数 [OpenFeint initializeWithProductKey:(...)] 中
我正在开发一个包含对 OpenFeint 支持的 iOS 应用程序。 OpenFeint 包括对 Facebook 的支持,因此如果用户登录到 OpenFeint,她/他可以在 Facebook 上发
我已经将 OpenFeint 集成到我的 Android 游戏中,我想知道我需要添加什么才能获得 OpenFeint 玩家 ID。我想要 id 或用户名,这样我就可以允许用户在设备之间转移他们的游戏帐
我到处寻找、询问,至今没有结果。我正在将 OpenFeint 放入一个游戏中,但 OpenFeint 仪表板中的 ScrollView 出现问题。排行榜和成就(以及其他当前不相关的其他)有 Scrol
我是一名优秀的程序员,十分优秀!