Skip to main content

Questions tagged [objective-c]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
467 views

I was making a game and I did the side scrolling like this: if the player get past 150, the player stops moving and the background starts moving. But thats very annoying with placing objects in the ...
jan's user avatar
  • 1
0 votes
3 answers
575 views

I made a little iPhone game in which I want to make multiple monsters spawn. I have one UIImageView called enemy that spawns at beginning of the game. But I want ...
jan's user avatar
  • 51
4 votes
1 answer
1k views

I made a little 2D shooter game for my iPhone. I want monsters to spawn at random locations. But I don't have any clue where to start to make them spawn. I already made the monster image and ...
jan's user avatar
  • 51
2 votes
2 answers
2k views

I'm building a platformer in cocos2d, my first game project. I'm working on movement and collision detection. I'm using a tilemap with a "meta" layer of invisible blocks that are designated collidable....
James's user avatar
  • 453
2 votes
1 answer
556 views

Are there any good resources out there for game development in GNU step? I looked at some of the source code for ooLite, but that didn't really have much in Objective-C. What is there these days?
blissfreak's user avatar
3 votes
1 answer
1k views

I'm about to start writing an iOS game and I'm going to use mainly C++/C for the core gameplay logic. I really like pre-allocating everything in the game and try to avoid any dynamic allocations as ...
pachanga's user avatar
  • 131
-1 votes
1 answer
712 views

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, ...
PeterK's user avatar
  • 516
1 vote
2 answers
414 views

These days, I'm focusing on games development on the iOS. C++ is the lingua franca for games development but seriously, I prefer to code in C programming language, not in C++. So for iOS games ...
Chiron's user avatar
  • 805
16 votes
6 answers
7k views

I have a good grasp in C++ and C and have also experience developing AAA game using C++. Now, I'm shamelessly thinking to dive into mobile game development either in iOS or Android. Unfortunately, I ...
James Bern's user avatar
1 vote
3 answers
2k views

In my simple game I use boundingBox for pick coins and other stuff, but I need use irregular area detection of Sprite(with out Alpha)... There is alternative to boundingBox? Here is code: ...
SeriiZ's user avatar
  • 13
1 vote
1 answer
2k views

Does cocos2d has a method that returns the amount of CCSprites added to a CCLayer? A have SceneControlLayer object, and I added some CCSprites to it. ...
Bob Rivers's user avatar
2 votes
1 answer
1k views

I am working on some Cocos2D tutorials (doodle drop) and have downloaded the program on my device. The program is working but I have to hold the iPhone in a very specific, and not very good, angle to ...
PeterK's user avatar
  • 516
2 votes
6 answers
1k views

Does anyone have a good algorithm for generating a random y position for spawning a block, which takes into account a minimum and maximum height, allowing player to to jump on the block. Blocks will ...
blakey87's user avatar
2 votes
4 answers
2k views

I'm trying to figure out which language I should begin learning. I've only been programming for about 6 months, with languages like PHP, Java, and C#. I want to learn how to dev games, and while I ...
blissfreak's user avatar
0 votes
2 answers
2k views

I'm having some problems porting my D3D code to OpenGL ES. I have a Graphics Device class that encapsulates all rendering commands. The code below is in an ObjC++ file. The problem code is the called ...
Neil M's user avatar
  • 244
6 votes
4 answers
4k views

Examples of what i'm going to need: I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS cone. How would i test if the player is within that cone, taking obstacles into ...
Zaky German's user avatar
  • 1,136
4 votes
4 answers
14k views

In the next few weeks I will start a game for iOS, most of the action will happen in 2D but a 2D engine is not enough for our idea, therefore I'm doing a small research on available 3D engines for iOS ...
user avatar
6 votes
1 answer
2k views

I'm looking for an AI engine for iOS game development (machine learning, path finding).
Nguyen Minh Tuan's user avatar
18 votes
5 answers
23k views

I'm pretty confident programming in Objective-C and C++, but I find Objective-C to be somewhat easier to use and more flexible and dynamic in nature. What would be the pros and cons when using C++ ...
Martin Wickman's user avatar
4 votes
2 answers
1k views

This sounds like an easy thing but when I considering the following Many players Some have played many games and some just started Different type of statistics On what information should the actual ...
PeterK's user avatar
  • 516
1 vote
4 answers
540 views

In my game you need to protect something from enemies. There can be many on the screen at once. But I don't know how to create the enemies randomly, and how I can save the data to each enemy? Can give ...
Fabio Poloni's user avatar
3 votes
1 answer
872 views

Irrlicht uses namespaces, a C++ feature not available in Objective-C: ...
user avatar
4 votes
3 answers
3k views

Are there are any modern resources on how to develop games for Mac OS? I suppose this would include objective c, cocoa and opengl 3+. The book Beginning Mac OS X Game Development with Cocoa looks ...
Nick Sonneveld's user avatar
2 votes
4 answers
1k views

I'm testing a 2D OpenGL ES based iPhone game on both the iPhone 3G and the iPhone 4. It runs great on the iPhone 4... and pretty well on the 3G. The game state is updated at 60 Hz... and the ...
MrDatabase's user avatar
  • 1,951
1 vote
2 answers
540 views

I'm new to game development and development in general, I want to make a Connect 4 game. I have made a few simple game tutorials and I decided I wanted to make my own game now. I figured a connect 4 ...
David  Holmes's user avatar
7 votes
7 answers
6k views

Are there any very simple open source games available just to demonstrate the basics of the programming techniques? Preferably something which fits in to a couple hundred lines of actual code. ...
6 votes
2 answers
2k views

I'm trying to send structs as neatly sorted packets using iPhone Game Kit.. I have a struct which looks like: ...
user avatar
13 votes
5 answers
5k views

Is there an industry standard file format for texture atlases? What are the apps that take a directory of images and turns it into a texture atlas png and a text file describing what's on it? This ...
davidcann's user avatar
  • 233
10 votes
4 answers
5k views

I want to detect a collision between a sprite and a user-generated shape of some sort. For example. There are 3 objects on the screen. The user takes their finger and draws an abnormal shape around 2 ...
David McGraw's user avatar
  • 4,081
10 votes
6 answers
3k views

How would you store your game state at exit for an iPhone game written in Objective-C?
Dennis Munsie's user avatar