Xcode is an IDE from Apple which integrates design, coding, testing, and debugging capabilities for Mac OS and iOS software development.

learn more… | top users | synonyms

7
votes
2answers
914 views

What is the correct way to implement hit detection with non-rectangular sprites?

What is the correct way to implement hit or touch detection for non-rectangular sprites in Cocos2d? I am working on a jigsaw puzzle, so our sprites have some strange forms (jigsaw puzzle bricks). As ...
4
votes
1answer
67 views

Can I create cocos2d animations without using Xcode?

I need to have someone do animation work for an iOS game I'm developing (using cocos2d), however this person does not have a Mac and as such cannot run Xcode. Is there a way for them to create ...
3
votes
3answers
8k views

Can Xcode be used to create very simple games?

I am brand new to Xcode, and I am also brand new Objective-C programmer. I was wondering if it is possible to create simple Mac games with Xcode. If it's not possible, could you recommend me some ...
3
votes
2answers
734 views

Variables in static library are never initialized. Why? [closed]

I have a bunch of variables that should be initialized then my game launches, but must of them are never initialized. Here is an example of the code: MyClass.h class MyClass : public BaseObject { ...
3
votes
2answers
171 views

Is it possible exchange points between players using Game Center?

I want to create a turn based two player game. In my game in a certain stage if player 1 loses he must give few points that he have to the opposite player. The game is implemented with game center. Is ...
2
votes
1answer
2k views

Am I allowed to release an app I developed with Xcode on windows?

I want to develop an app for the iOS app store, but don't want to invest in a mac since they start very expensive. So I considered running Xcode via VMware using OSX Lion on my windows 7 computer. ...
2
votes
1answer
463 views

Build-time GLSL syntax validation

Is there a way to validate GLSL syntax build-time instead of run-time? My application takes a long time to start and I want to know at the earliest possible stage that my shaders are ok. I'm using ...
2
votes
0answers
394 views

FPS Drop after upgrading to XCode 4.3 [closed]

I'm hoping someone else has experienced this and subsequently found a solution as I am about to light my own hair on fire in frustration. Simply put, I was creating a Cocos2D app using XCode 3.2.6 ...
2
votes
1answer
522 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 ...
1
vote
5answers
2k views

Learning C++ but wanting to develop iOS Apps

I'm a computer engineering student and taking my second programming class. I'm learning C++ using "C++ Primer Plus" 5th edition by Prata. I want to develop for iOS. I understand the main language for ...
1
vote
2answers
98 views

How to detect collision on specific part of the sprite node

I have a spike and a ball is falling down, when the ball touches the top point of the spike, I want to make the ball invisible, and when it touches on the other part i.e on the sides I don't want to ...
1
vote
1answer
118 views

iOS Sprite Kit - Blend Mode Effect

This question builds upon the following question: How can I achieve a good fire effect with alpha blending and particles? I want to achieve the visual effect of using SKBlendModeAdd on a black layer, ...
1
vote
1answer
180 views

Spritebuilder and CCScrollView, page indicators not showing up?

I'm using Spritebuilder to make my game, and CCScrollView usually saves me quite a bit of time. I'm trying to implement the scroll view much in the same way as the home screen on an iphone uses the ...
1
vote
1answer
319 views

Unity3d iOS: unable to find iPhone_GlesSupport.h [closed]

i've an old unity project and i've tried it just today (with unity 4.1) and xcode 4.6. Xcode is unable to build it for the error: "iPhone_GlesSupport.h" file not found. Im pretty a noob under xcode ...
1
vote
2answers
575 views

Game Development at iOS+Android Platform : Template Engine for UI

We have broken down our game development process to UI Programming Core Game Programming Particle Effect Programming UI will be created by a group of programmers and those UI will be used at Core ...
1
vote
1answer
401 views

Why do my pyramids fade black and then back to colour again [closed]

I have the following vertecies and norms GLfloat verts[36] = { -0.5, 0, 0.5, 0, 0, -0.5, 0.5, 0, 0.5, 0, 0, -0.5, 0.5, 0, 0.5, 0, 1, 0, -0.5, 0, 0.5, 0, 0, -0.5, 0, 1, 0, 0.5, 0, 0.5, -0.5, 0, ...
1
vote
0answers
271 views

Unity game debugging on Xcode

This question has two parts: 1. How to get meaningful information out of Xcode crash logs? The game runs fine on the editor but when running on an iOS device it crashes and then gives information ...
0
votes
2answers
44 views

Count number of CCNodes of a certain class on a layer

Pretty simple question. I'm working in Objective C (cocos2d) and I'm trying to count the number of a sprites of a certain class are present on the current layer being displayed. For example, I have a ...
0
votes
1answer
285 views

SDL_types.h file not found using xcode

Getting this error when trying to use SDL_mixer... SDL_types.h file not found.. I am including all the correct files as far as I can tell and have included the frameworks (both SDL and SDL_mixer) ...
0
votes
1answer
204 views

Cannot find the Cocos2d templates

I am about to upgrade to the last version of Cocos2d and would like to uninstall my current Cocos2d templates before installing the new one but cannot find the templates to delete. I have looked at a ...
0
votes
1answer
241 views

Player sprite moving slower on iPhone 4

I just finished getting movement/jump animation for a player sprite in Xcode using Cocos2D. The basic movement algorithm is a timer that updates every 0.01 sec, changing the sprite position to ...
0
votes
0answers
10 views

Spritekit physics engine inconsistencies [closed]

reading this article I notice that spritekit has inconsistent results in its physics engine due to timestep issues. http://www.element84.com/comparing-sprite-kit-physics-to-direct-box2d.html It ...
0
votes
1answer
89 views

Swinging a sword in Xcode with Sprite Kit

I'm working on making an RPG in Xcode, and I'm having a major gameplay issue when it comes to having my character swing his sword in a way that is realistic and gameplay compatible. Right now, when ...
0
votes
0answers
8 views

FreeType2 Crash on FT_Init_FreeType in xcode(cocos2dx) [migrated]

I'm currently trying to learn how to use the FreeType2 library for drawing fonts with OpenGL. However, when I start the program it immediately crashes with the following error: problem loading file ...
0
votes
0answers
22 views

Video cutscene on Mac using QTKit? [on hold]

My game needs to display a video file. The game engine I am using allows extensions via .dynlib files (MacOS dynamic libraries). I changed my source's extension to .mm so I can use QTKit, but it ...
0
votes
0answers
12 views

Maintaining a constant magnitude of speed of a CCNode's physics-body after collision with a static body

I have two CCNode class "Baffle" and "SmashBall" with there physics bodies. Here are the PhysicsBody details of Baffle // Defining the physics body CCPhysicsBody * physicsBody = ...
0
votes
1answer
42 views

How to get the complete width of SKSpriteNode which has many child nodes

I have a Sprite node with many 6 child nodes. Each are placed one after another in X-axis. I want to know the complete with of the Sksprite node. SKSpriteNode *array = [SKSpriteNode node]; [array ...
0
votes
0answers
18 views

Label jumps to front when tapping UITablecell

I made a UItable with some custom cells. When i press the cell, the label in the cell jumps to the front of the cell and is stuck behind a button that's in the cell. i've made a video available to ...
0
votes
2answers
56 views

Can I create relative filepaths to images in an XCode SDL project?

Can I create relative filepaths to images in an XCode SDL project? I have to use absolute filepaths as it is, but it would be much easier if I could make the filepaths relative.
0
votes
0answers
60 views

Is it possible to integrate 3d animated models in a chat app?

I'm trying to make a 3d model from the top left corner animate when a gui in the bottom of the phone opens a keyboard & shows a list of animation. The problem is I am a game developer & I have ...
0
votes
0answers
380 views

AssetBundle local file path on iOS

I have been testing AssetBundles and I get them to work on the editor with both Load and LoadASync functions. But when I build to iOS I keep getting the following error when loading: You are trying ...
0
votes
1answer
367 views

OpenGL in xcode 4

I'm just getting started with OpenGL with lot's of ideas on my head that i want to experiment, i started reading the OpenGL Superbible book which looks amazing but i am having a super hard time making ...
-1
votes
1answer
328 views

Level Editor for iOS Games [closed]

What would be the best way to design "Angry Birds" - levels. I wanna develop my own Angry Birds but I don't know how I should design the levels. Is there any good tool/level editor for that? The app ...
-2
votes
0answers
20 views

Mobile Games Programation - Tutorials? [on hold]

I am now noob to the programmation world but I never had any experience with xCode (iPhone code) or C++ (Android), but I have a Java basic knowledge that can help me a lot. My objective is to learn ...