Tagged Questions
-1
votes
0answers
8 views
Issue with DFS imlemtation in objetive-c
i am trying to to do something like this
Below is my code:
-(id) init{
if( (self=[super init]) ) {
bubbles_Arr = [[NSMutableArray alloc] initWithCapacity: 9];
[bubbles_Arr ...
0
votes
1answer
77 views
cocos2d collision detection between two ccsprites i am using boundingBox but this method is not working
I am making a cocos2d side scroller and I am currently putting collision detection in. I have an enemy that shoots at the player. I want to have the bullets disappear when they hit the player. The ...
1
vote
1answer
87 views
Designing a four-directional movement control
I'm developing an RPG for iOS. Currently, I plan my controls to look like this:
So the user can interact with objects, people, etc. by tapping on the right side of the screen, and moves by swiping ...
0
votes
0answers
45 views
NSNotificationCenter or array of delegates to broadcast information?
I'm writing a buff class that will have a delegate to the caster and an array of delegates that call the affected objects (can be tiles or sprites).
After some research on how to create an ...
0
votes
1answer
95 views
How to store NPC movement data?
In my 2D tile-based game, I have NPCs that move around on a fixed path. I am putting the information about the NPCs in a .plist file that is loaded on startup. The thing is, I'm not sure how to format ...
0
votes
1answer
68 views
Set texture of a LHSprite that is loaded from LevelHelper
How do i set the image/texture of an LHSprite that is loaded into xCode using levelHelper & spriteHelper?
I am using sprite sheets. So i tried to load the image the old fashioned way using ...
5
votes
2answers
386 views
How to combine tap and long hold gesture recognizers?
I have a game in which the player moves around a sprite by tapping on various sections of the screen (left, right, up, down). So far, each tap moves the sprite one tile (I use a tile system for ...
0
votes
0answers
44 views
Image is displaying in inverse order cocos2d
I am drawing image in cocos2d using opengl call but image is displaying inverse order, i faced same problem previously that time i used to change value of CC_TEXTURE_NPOT_SUPPORT to 1 from 0 in ...
0
votes
0answers
53 views
Make a layer over an image and adjust its co-ordinates by touch
I need to make a layer over an image and adjust the layer to fit to image and get its co-ordinates of the layer.
I need to adjust the layer by touch and pinch.
The sample image is as below. I need ...
3
votes
1answer
129 views
Rotate an image and get back to its original position - opengles glkit
I need to rotate an image in opengles GLkit and get it back to its original position in GLkit.
rotation += 5;
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(5), 1, 0, ...
1
vote
1answer
153 views
opengles display human face in iphone and animate it?
I need to make a human 2D face to 3D face.
I used this link to load an ".obj" file and map the textures. This example is only for cube and pyramid. I loaded a human face ".obj" file.
This loads the ...
2
votes
0answers
103 views
Difference between multiple AudioUnits and one AudioGraph with a MultiChannelMixer
I'm porting my game to iOS using MonoTouch, and I'm having some trouble getting sound output to work. SystemSound/AVAudioPlayer is way too simple for my needs (I need looping and multiple simultaneous ...
1
vote
0answers
75 views
iOS Facebook SDK, Games Start Playing post
im trying to implement a method in my native iOS game the publish a story on face book such as this photo
most games that is integrated with facebook share stories like this in the activity section ...
2
votes
1answer
345 views
iOS game integrated with Facebook - Random game
How could I implement a random game for iOS via Facebook. I registered my game with Facebook and done everything so far... Can Facebook do such a thing?
EDIT
I connected my app to Facebook, I can ...
4
votes
1answer
999 views
How to make a iOS plugin for Unity3d
I've passed last 2 days reading articles and book for understand how can i make a plugin for iOS in Unity. Basically i need just a demo for understand how it work. For now i've tried to make this ...
3
votes
4answers
284 views
What is technical specs for iOS platform for a game?
I would like to know when a contractor ask you for a technical specs for iOS platform of a game, what's the description that you should give back to him?
1
vote
3answers
667 views
Wait till all CCActions have completed
I am developing a simple cocos2d game in which I want to animate two CCSprites simultaneously, and for this purpose I simply set CCActions on respective `CCSprite's as follows.
[first ...
0
votes
1answer
158 views
Copies of GameScene created when called additional times
UPDATE: It no longer crashes after removing [self removeAllChildrenWithCleanup:YES]; from onExit. The artifacts still remain though.
UPDATE 2: Found my problems. See my answer below.
I have a game ...
1
vote
0answers
176 views
How do I use Objective-C libraries in Cocos2d-x?
We've created several libraries in Objective-C in the past, and now we're moving to the Cocos2d-x game engine. We can't figure out how to reference and use those libraries (we've also tried compiling ...
3
votes
2answers
314 views
Separating UI and logic in Objective-C at iOS based Games
How to separate UI and logic in Objective-C based mobile games?
To develop games, I use Cocos2d library.
I need a good reference to separate my UI code from game logic code.
0
votes
1answer
313 views
Admob banner not getting remove from superview
I am developing one 2d game using cocos2d framework, in this game i am using admob for advertising, in some classes not in all classes but admob banner is visible in every class and after some time ...
0
votes
1answer
400 views
OpenGLES how to make a 3D object iOS
I am a newbie in OpenGLES, so pardon me if I cannot state the question properly.
Is it possible to create a 3D box with the following imports only:
OpenGLES, QuartzCore, GLKit
I have created a 2D ...
1
vote
1answer
294 views
UIView with IrrlichtScene - iOS
i have a UIViewController in a Storyboard and want to draw a IrrlichtScene in this View Controller.
My Code:
WWSViewController.h
#import <UIKit/UIKit.h>
@interface WWSViewController : ...
-2
votes
1answer
831 views
How change the size of sprite in cocos2d?
I want to change the scale of sprite like a paper in 'Paper Toss' game.
'Paper Toss' is the game is available on the App store. I want to make a sprite like a paper and change the scale of sprite ...
-1
votes
2answers
366 views
Good open source iOS games? [closed]
I would like to see how things are done in modern iOS games, I am especially interested in Cocos2D games.
I need a game that will compile (warnings are ok) and since most of the project I have seen ...
1
vote
1answer
201 views
Touch area double sized on newer device
I am developing a universal puzzle game, in which I have used separate image for iPhone4 and for iPhone3, iPhone4 image is double in size of iPhone3 image. My issue is for iPhone4, touch area of image ...
0
votes
1answer
348 views
Level selection view - similiar to Angry Bird's
I am making game and need to prepare view for level selection. Could you recommend me some opensource library which could I use? I need icons to vibrate after long pressing one of them, some callbacks ...
2
votes
1answer
361 views
Xcode workspace with Unity3D as a sub-project?
Let's say we're developing a 2D game with Cocos2d-iPhone and UIKit and CoreAnimation. But we're also considering leveraging the 3D capabilities of Unity 3D.
Is it possible that we add the ...
0
votes
1answer
1k views
How to simulate a water splash effect?
I need to achieve the effect of a ball falling down into a pool then splashing in the water.
At first, I made a sensor to detect the collision between the ball and the water and then show the sprite ...
2
votes
1answer
548 views
How To show document directory save image in thumbnail in cocos2d class [closed]
I have just implemented multiple photo selection from iphone photo library and i am saving all selected photo in document directory every time as a array, now i want to show all saved images in my ...