openfeint

iOS and Cocos2d - Changing CCSprite's image AND new dimensions = FAIL

房东的猫 提交于 2019-12-23 05:27:59
问题 One of the powerups in my game is a decrease in size of the main sprite. So for memory sake, instead of looping a sprite.scale through each frame, I resaved the sprite at a percentage size lower than the original sprite, and just wish to replace it. Then once "death" occurs or timer runs out, the original sprite returns. So, I am using this code for making it small: [player setTexture:[[CCTextureCache sharedTextureCache] addImage:@"player-small.png"]]; and this code for resetting back to

Crash in Android Native while changing to new Activity

牧云@^-^@ 提交于 2019-12-20 05:23:43
问题 My application is unable to open OpenFeint dashboard methods. The implementation of the native c++ libraries uses cocos2d-x as a graphic library, but it has a handler and a wrapper to allow the use of OpenFeint functions. OpenFeint initialization and non-activity methods work correctly. When UI dashboard functions such as openLaderBoards or openAchievements are called either from a Jni call or in the Java onCreate initialization, the application crashes. EDIT: I have tested and it happens to

How to add leaderboard feature of OpenFeint in Android?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 10:22:28
问题 I am developing a game in Android, by extending a class with view. I have integrated OpenFeint in it by studying the tutorial provided on OpenFeint site url is(http://support.openfeint.com/dev/getting-started-with-of-android-1-10-2-integrate-openfeint-in-your-game/), but I am not able to add a leaderboard feature in my app. How can I do that? My game class is like this: public class GameActivity extends Activity { Intent i; Grapic g; public void onCreate(Bundle savedInstanceState) { super

Using OpenFeint to get current Achievement progression

心不动则不痛 提交于 2019-12-12 02:35:50
问题 So I'm setting my achievement like so: int currentPercentage = ... // Work out current percentage of progression to update too [[OFAchievement achievement: ACHIEVEMENT_ID] updateProgressionComplete: currentPercentage andShowNotification: YES]; But is there anyway to get the currentProgression from the OF servers? This would be useful to know so I can update the progression by a percentage rather than storing values locally to do this. Thanks 回答1: you can do this by calling :

OpenFeint with MonoTouch

情到浓时终转凉″ 提交于 2019-12-01 00:03:13
I want to use OpenFeint in a MonoTouch project. I have no experience in creating the proper bindings to use a third party Objective-C library with Mono. Reading this article on the Xamarin website did not really help me any further. Has anyone created the bindings necessary to use OpenFeint with MonoTouch or has anyone experience with creating the bindings I need? It is really easy. File->New Project->MonoTouch->MonoTouch Binding project First thing add the Objective-C library (*.a file), it's Build option should automatically say Native Library . Add all the header files they provide with a

OpenFeint with MonoTouch

ε祈祈猫儿з 提交于 2019-11-30 18:56:40
问题 I want to use OpenFeint in a MonoTouch project. I have no experience in creating the proper bindings to use a third party Objective-C library with Mono. Reading this article on the Xamarin website did not really help me any further. Has anyone created the bindings necessary to use OpenFeint with MonoTouch or has anyone experience with creating the bindings I need? 回答1: It is really easy. File->New Project->MonoTouch->MonoTouch Binding project First thing add the Objective-C library (*.a file)