The iPhone smartphone designed by Apple Inc. The first iPhone was introduced on January 9, 2007. The iPhone runs on the iOS platform and can download and install applications from the iTunes app store.

learn more… | top users | synonyms

-1
votes
1answer
685 views

Help: -[GameScene spiderBelowScreen]: unrecognized selector sent to instance 0x257f50

I am currently doing the tutorials in the book: "learn iPhone and iPad cocos2d Game Development" by Steffen Itterheim and have been running into problems with the code for the DoodleDrop tutorial, ...
1
vote
1answer
601 views

Dynamic bodies with Parallax Scrolling

I have an object that has a dynamic body. Currently, I'm setting it's position to follow the sprite when the parallax layer move. After a certain event, the object suppose to fall to the ground. ...
2
votes
4answers
3k views

What 2D engine can I use to port my flash game to iOS and Android? [closed]

I would like to port my 2D flash game to Android and iOS. Is there any cross platform engine you could recommend? Corona is the only promising one I have found so far.
1
vote
1answer
224 views

Can OpenGL ES help in this game?

I am learning OpenGL ES and I have setup the environment. I believe the best way to learn things is to grab a dummy project and start working on it. So what I plan to do is... Now I want this ...
1
vote
1answer
121 views

velocity question from book iPhone

I am reading an iphone game dev book and I have a question about velocity. mainly it is this line playerVelocity = ccp(playerVelocity.x * dec + acceleration.x * sens, 0); Why do you mutiple the ...
3
votes
1answer
715 views

How do you get textures out of a png file

I have 1 png of many different textures. I want to use these textures in my iphone game using cocos2d. I found the program "Zwoptex" where you can combine many textures to one png and create a plist ...
2
votes
3answers
682 views

Minimum Hardware for iPhone Dev

So I'm planning to get into iPhone dev (2D games). I understand that my only real option is to get a Mac. I'll probably go the MonoTouch route. I'm not sure what hardware to buy; I just want the ...
-1
votes
1answer
311 views

Insert object at index, when two objects collide

I have two arrays: one for projectiles, and one for targets. Every target and every projectile has tag, and a tag with color (source code I took from Ray Wanderlich). In my small game, when a ...
4
votes
1answer
2k views

Client/Server networking for mobile games

I am currently considering the pros and cons of two different approaches for networking an Android game. First, I will specify some details about the game and its requirements, and then I will ...
8
votes
2answers
727 views

Where do I store strings? What's an efficient way of loading them?

I'm making a top-down RPG for iPhone. I'm using tilemaps (CCTMXTileMap) and the cocos2d-iphone engine. I've made a class that can handle loading maps and NPCs onto the screen, a class that handles ...
3
votes
1answer
1k views

create a simple tilemap programatically

i am working on a tile roguelike i got some of the basics working using this tutorial http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d but i want to be able to create a ...
2
votes
2answers
959 views

The best way to communicate between multiple iPhones/iPads in a card game

I have been looking around for information about this topic but not found what i need. Here is the scenario, i am planning a card based game (cocos2d) where the idea is that up to four players should ...
2
votes
2answers
484 views

Best practices for playing sounds in iPhone games

What are the best practices for playing sounds in iPhone games? Specifically, what are the best practices while playing sounds simultaneously without affecting other processing much. Is there any ...
2
votes
1answer
1k views

How to move an UIView along a curved CGPath according to user dragging the view

I'm trying to build a interface that the user can move his finger around the screen an a list of images moves along a path. The idea is that the images center nevers leaves de path. Most of the ...
3
votes
1answer
800 views

shake / Vibrate a body in box2d?

How do you vibrate or cause a shake effect to a body of type static or dynamic or kinematic. I tried applying forces to a dynamic body in the timeStep, which did not work, as well I tried ...
0
votes
2answers
242 views

Slow motion of a spherical object on an blunt slant obstacle

In cocos2d environment and box2D when an spherical object falls on a blunt slant obstacle, it moves really slowly, that's nauseating, if you have coded to not to have any interaction with world while ...
2
votes
1answer
323 views

iPhone, iPad Rendering Ahead of Input (4-5 seconds)

UPDATE I think I solved this one, though any thoughts or suggestions are always welcome! This one is truly bizarre... I'm developing using both an iPhone 3GS and an iPad 2. This symptom is ...
0
votes
2answers
208 views

Can I use MobiForms for my game development?

Just now I found MobiForms. I am planning to create a game for the iPhone using it. My problem is I know only Objective-C and I have designed only one app (which is also a game) that's currently in ...
-1
votes
1answer
293 views

Is it any good to make play game in zoom condition?

I'm developing a game with large obstacle and sprites(in cocos2d+box2d for iPhone), then after zooming out my sprites and layer (by increasing cameraZ), I make my game to play by user, which causes ...
0
votes
1answer
844 views

Help implementing virtual d-pad

Short Version: I am trying to move a player around on a tilemap, keeping it centered on its tile, while smoothly controlling it with SneakyInput virtual Joystick. My movement is jumpy and hard to ...
1
vote
1answer
2k views

What is an efficient flood-fill algorithm?

I am working on a game in which I have to fill a closed region with color. Currently I'm using a non-recursive, scanline-based flood filling algorithm. But in my case it is slow. Can anyone provide me ...
3
votes
1answer
595 views

How to handle input from user

I am making an iphone opengl es 1.0 game. I am using a fixed timestep with interpolation on the end. One thread only. I am using CADisplayLink to fire the game loop. First question: is it okay to use ...
5
votes
1answer
211 views

How to test a network game on a mobile device

I am looking to test a network game with say, 10 or more users, on a mobile device. Think of it like an MMO with a lot less users. (Assuming I can get 10 running, I'd test for more users later) The ...
-5
votes
4answers
1k views

Crash when using Cocos2d

Sorry about the poor question title, it's just that this seems to big for a title. So here's the dirt: I am making a game (obviously) and I want the enemies to shoot (not necessarily at the player). ...
-3
votes
2answers
453 views

animation and game development tutorial for iphone [closed]

Can anybody suggest a good game development and animation tutorial for iphone
1
vote
2answers
1k views

Looking for the reference tutorials for the joints in the Box2D for iphone

I can't find the tutorials of joints class in the Box2D for iPhone. I am unable to run a Testbed for iPhone Box2D. (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ...
1
vote
1answer
248 views

Mouse joint isn't restricting the ball from going to the other part of the screen

I'm developing a application in cocos2d using the Box2D framework, but unfortunately I am having issues. I'm not able to restrict the orange ball in the half screen area, taking the image below as ...
2
votes
1answer
228 views

Using an iPhone as a controller for a flash game

How can I use an iPhone as a controller for a flash game, as described here?
7
votes
3answers
1k views

Can You Make an iPhone game for Free?

A friend and I want to try making an iPhone game, but we don't really have a budget to speak of. From what I've found, I need the iOS SDK, and that costs money. Is there really no way to make an ...
0
votes
1answer
762 views

How do I open the camera in a CCScene node in a Cocos2D application?

I am new to Cocos2D and I can't find the way to open the camera from the library. I want to open the camera in the my game, can any one help me with with this? Thank you in advance.
2
votes
1answer
812 views

Help with Collision of spawned object(postion fixed) with objects that there are translating on screen

Hey guys I am creating a game using Corona SDK and so coding it in Lua. So there are 2 separate functions, To translate the hit objects and change their color when they are tapped The link below ...
4
votes
3answers
1k views

Writing C# for iPhone 2D Game Dev - Not Unity

What are my options for writing C# code to produce a 2D iPhone game? I specifically mention 2D -- Unity will not suffice for me (even though it can "fake" it with a 2.5D game). I like C# because of ...
3
votes
2answers
3k views

Getting started with Box2D for iOS

I just want to run any Box2D "Hello World" or test apps. I've downloaded the source twice (zip file the first time and via svn the second time), followed the build instructions (do stuff w/ cmake, ...
1
vote
2answers
441 views

OpenGL ES multiple indices

I need suggestions for the best method of acheiving what I am trying to do: -Using either OpenGL ES 1.x or 2.x I need to pass a bunch of vertices to the GPU. Each one has 3 attributes: Position, ...
1
vote
1answer
487 views

OpenGL ES indices optimization

I am using OpenGL ES 1.x/2.x I have 2 attributes to be passed to the GPU(one is colors, one is vertices, one color per vertex). I use indices. Both attributes will use the same indices array This ...
13
votes
4answers
24k views

Fastest way to draw quads in OpenGL ES?

I am using OpenGL ES 2.0 I have a bunch a quads to be drawn, would love to be able to have to pass only 4 vertices per quad as if I were using GL_QUADS, but basically I just want to know the best way ...
2
votes
2answers
671 views

Map file format for Real-time strategy game

I am planing to create a 2D RTS game on iPhone using cocos2d, besides the tile map, any other suggestion for storing the map details for the game? Would be nice if a GUI editor is also provided.
11
votes
4answers
4k views

What are the app file size limitations for different smartphone OSes & carriers?

I know the iPhone App Store limits how large an app can be in general and there are also limitations with AT&T over the size it can be to transmit over a data plan vs WiFi. I have no idea what, if ...
1
vote
2answers
1k views

Is it true that to test a game on the iPhone or iPad, we either need to pay $99 to join Apple Developer program, or jailbreak the iPad?

To test a program for iPhone or iPad, seems like the only way is to join the Apple Developer program and pay $99 per year? Can you also jailbreak the iPhone or iPad and be able to test it?
1
vote
2answers
879 views

RTS game engine for iOS/iPhone

Anyone know any free or non-free RTS engine that can be used for iOS game development?
0
votes
1answer
961 views

OpenGL - resize texture when using cubemap

I want to resize my texture. I am using cubemap to compute reflection. I want to use this cubemap to draw skybox. Skybox is drawn but I want to resize texture down, because it is dilated. As I wrote ...
1
vote
3answers
180 views

Story for an iPhone Game from a book?

I'm making a story-intensive game (RPG) for the iPhone and want to distribute it over the AppStore. But AppStore Apps have the potential to be distributed internationally, so I need kind of legal ...
2
votes
3answers
4k views

iPhone Open GL ES using FBX - How do I import animations from FBX into iPhone?

I've been researching this extensively. We have a game that's 90% complete, using custom game logic in iPhone 4.0. We've been asked to import a 3D model and have it animate when various events happen ...
0
votes
3answers
890 views

OpenGL ES 1.1 strange slow drawing by zooming on iPhone

I have created a view (derived from UIScrollView) where the cells are drawn and zoom occurs. Everything is drawn with OpenGL ES 1.1. Zoom is specified by adding of a calculated new distance which is ...
2
votes
2answers
3k views

How do I create a sky box with OpenGL ES 2.0?

Can you give me hint to any good sky box example in OpenGL ES 2.0? I have found only OpenGL and does not work for me. I am doing it this way: Initialization: glUseProgram(m_programSkyBox.Program); ...
3
votes
4answers
1k views

iPhone Game framework on top of cocos2d?

I am using cocos2d to develop iPhone game, however, it is just an 2D engine and developer is too flexible to use them - i.e. codes tends to be unmanageable. Are there any more high level framework ...
3
votes
2answers
201 views

How do I allow a player to manager several games at once with different players using game center?

I wish to do a turn based multiplayer game like Words with friends on the iphone. I would like to know the approach for the implementation to allow the user to continue games that are currently still ...
5
votes
2answers
414 views

What to think about when designing a simple GUI for a quiz game

I am coming close to finish my first iPhone game ever, as a matter of fact also my first programming experience ever, which is a quiz game. I have all the functionality i want and is currently ...
-1
votes
1answer
260 views

Game engine used for iPhone Zombie Cafe?

There is a game called Zombie Cafe, for iPhone. It is 2d and has a cool concept. Developed by capcommobile. Anyway, all I want to know is what engine did they use for making it? I know that this kind ...
4
votes
3answers
1k views

Which API for cross platform mobile audio?

This question focuses on the API's available on phones. I'd been planning to use OpenAL in my game for maximum portability. It runs great on Linux so I can quickly iterate while developing as well ...