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.
0
votes
0answers
32 views
OpenGL ES 2.0 - Rendered texture is blank [closed]
I am attempting to render to a texture, then render the texture to the screen, but it always seems to be blank no matter what I do. Can you guys take a look for me and see what I am missing here?
The ...
0
votes
1answer
52 views
Cocos 2d move CCsprite in array of points [closed]
I need a CCsprite to move to the points in my array those points will form a circle.I know to move CCsprite but my app crashes when i make it to move in array of points. Help me where i am making ...
0
votes
1answer
15 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
192 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 ...
-2
votes
0answers
44 views
Coming From Java: Creating Objective C iOS Frameworks [closed]
So I'm a Java programmer learning to use Objective-C and Cocoa for iOS development.
I have a library in Java that is the basis for most of my games. It includes things like a physics, math, game loop, ...
0
votes
0answers
39 views
How to select a show and select weapon on touch a bubble that changes continuously weapons! [closed]
hello i need to select a weapon from a floating bubble that changes weapon inside in it !
Bubble must show 2 weapons changing randomly until user taps to gain the weapon
(This lets user gain any bonus ...
0
votes
0answers
34 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
27 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
0answers
56 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, ...
0
votes
1answer
99 views
Quit the application when clicking cancel button of Alert View in C#
Can someone guide me as to how can I make an application quit when you press the cancel button of an Alert View in C# code?
Thanks
I forgot to add that I am trying to quit application on clicking ...
1
vote
1answer
99 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 ...
-3
votes
1answer
84 views
What is the difference between an object and a class? [closed]
What is the difference between an object and a class?
2
votes
2answers
142 views
How can I switch between scenarios in a text game?
I am making a text-based adventure game. How should I go about changing to another scene if the player wants to e.g. go to the house or walk down the road?
I am using Objective C, but C will work ...
0
votes
1answer
122 views
Using depth buffer on a sprite
I am following this guide:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:tiled_maps
Trying to create a tiled map that also supports multiple layers. The guide says that a way is to use ...
2
votes
0answers
71 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 ...
0
votes
1answer
96 views
DPad style movement for AI without using A*
What is the easiest way to implement DPad style movement (No diagonal) for AI without using and A* algorithm? I thought about having the enemy catch up to the player in the Y axis first then the X ...
1
vote
0answers
53 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
1answer
124 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 ...
-3
votes
1answer
222 views
Mobile Game Development for beginners [closed]
I am currently making apps for iPhone in Objective-C environment. I also want to learn Game development in IOS and Java for iPhone and Android. Can any one suggest me a complete book that I could ...
3
votes
1answer
569 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
235 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
294 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
128 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
154 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
1answer
71 views
Data model for unlockable card collection
My game has a collection of cards (about 64) that are unlocked (one by one) provided that 4 items are collected/gained in the game.
Right now the deck of cards is modeled with a plist file, like ...
0
votes
1answer
127 views
Long running calculation on background thread
In my Cocos2D game for iOS I have a relatively long running calculation that happens at a fairly regular interval (every 1-2 seconds). I'd like to run the calculation on a background thread so the ...
2
votes
2answers
275 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
192 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 ...
2
votes
1answer
148 views
Design leaderboard ratings for quiz games
Back in March 2011 i started the following post: How to design a leaderboard?
Now my quiz game have been out for approximately a year and sold pretty decently. I am working on to update the game ...
0
votes
1answer
319 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 ...
2
votes
1answer
224 views
Wheel rotation, to change velocity of vehicle
I update the velocity of my vehicle like so:
[v setVelocity: ((2 * 3.14 * 100 * (wheel.getRotationValue / 360) / 30)) * gameSpeed]; // update on 60 fps this gets velocity on all frames divide by 60 ...
0
votes
0answers
119 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, ...
1
vote
1answer
256 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 : ...
0
votes
1answer
197 views
How can I simulate light using mask images on the iPad? [duplicate]
Possible Duplicate:
Can I achieve a torchlight effect (lighter area around a light source) in a 2D game?
I want to have a picture as a background, say this:
Then I would like to apply a ...
1
vote
5answers
1k views
Snake game logic
So I'm thinking about making snake game. I started thinking about it. I figured out almost everything, but I have found one fundamental problem I can not fix myself and I need your help. The logic ...
5
votes
1answer
514 views
OpenGL blending (masking)
I need some help with OpenGL textures masking. I have it working but need to find some other blending function parameters to work in other way.
Now I have:
//Background
...code...
...
-2
votes
1answer
476 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
302 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
198 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
240 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 ...
1
vote
2answers
249 views
How can I make a rectangle to an irregular shape?
I used masking for breaking an image into the below pattern. Now that it's broken into different pieces I need to make a rectangle of each piece. I need to drag the broken pieces and adjust to the ...
1
vote
0answers
205 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 ...
3
votes
1answer
288 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 ...
0
votes
1answer
354 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 ...
1
vote
1answer
438 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 ...
0
votes
1answer
270 views
Triangles in a C++ STL Vector as an Objective-C member sometimes draws incorrectly in OpenGL ES
The polygons draw correctly 80% of the time. When it fails, a vertex is dislocated. The polygon is consistently drawn with the wrong vertex. I checked that the vector is correct during initialization, ...
1
vote
3answers
373 views
Missing z-axis rotation for transforming between two vectors
I'm trying to rotate a cube so that it's facing up, but am getting hung up on the final implementation details. It now reliably will rotate the x,y axis to the correct side, but the z-axis is never ...
2
votes
2answers
459 views
Issue with removing sprites on collision
I'm trying to make a very simple collision detection procedure just for test purposes.
The problem is with the send/receive information between functions
I have these lines on the update method ...
0
votes
1answer
128 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 = ...