Objective-C is a general-purpose, high-level, object-oriented programming language. It's mainly used for game development on Apple iOS and Mac OS devices, however it's not limitied to this platforms.
3
votes
1answer
295 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
363 views
Store and create game objects at positions along terrain
I have a circular character that rolls down terrain like that shown in the picture below.
The terrain is created from an array holding 1000 points. The ground is drawn one screen width infront and ...
0
votes
1answer
134 views
Changing location after CommitAnimations
I'm using the following code to move a UIImageView:
shootImg.image = [UIImage imageNamed:@"Projectile Left 1.png"];
[UIView beginAnimations:nil context:nil];
shootImg.center = ...
3
votes
0answers
43 views
Gamepad support for OSX
What is the most common method for providing gamepad support in an OS X game? I've been using an IOHIDLIB wrapper named DDHIDLib https://github.com/Daij-Djan/DDHidLib and it seems to be working but I ...
3
votes
0answers
64 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, ...
2
votes
0answers
74 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
59 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 ...
1
vote
0answers
158 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 ...
1
vote
0answers
206 views
Design pattern for procedural terrain assets
I'm developing a procedural terrain class at the moment and am stuck on the correct design pattern. The terrain is 2D and is constructed from a series of (x,y) points. I currently have a method that ...
1
vote
0answers
179 views
Cocos2D and iPhone's accelerometer
good afternoon!
Today I've started to develop a game and I got a trouble. So, first at all I would like to say that I have no experience developing games...
So, I've a CCSprite in the layer and I ...
1
vote
0answers
240 views
Zoom Layer centered on a Sprite
I am in process of developing a small game where a space-ship travels through a layer (doh!), in some situations the spaceship comes close to an enemy space ship, and the whole layer is zoomed in on ...
0
votes
0answers
36 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
28 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 ...
0
votes
0answers
121 views
Cocos2d update leaking memory
I have a weird issue - my app is leaking memory on device only, not on a simulator. It is leaking if i schedule update method anywhere, on any scene. It is leaking despite update method is empty, ...
0
votes
0answers
143 views
Schedule update problem
This might sound pretty straightforward. I've created a method and I've called it as below in the init method.
[self createNewSpr:ccp(s.width * 0.25,s.height-200)];
[self createNewSpr:ccp(s.width * ...
0
votes
0answers
188 views
objective-c iphone sdk dragging between a boundary box
I was thinking of make a slider/joystick but not in a circle but in a line.
So I made the image drag able only over the X axis and when it gets to the point
where the slider stops i did this :
...
-1
votes
0answers
25 views
Applying the vector of a swipe movement to a box2d object
Hi I'm trying to achieve game functionality where the player can place their finger on an object then swipe in a certain direction and apply the speed and velocity of the swipe to the object they have ...

