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.
180 questions
0
votes
0
answers
160
views
What is the math to project a 3D object's center onto a 2D plane?
What I really need is the x,y of the object when it is outside of the screen:
I'm actually coding a UI in Objective-C, not a game.
In this different kind of UI you navigate a 3D space with objects.
...
1
vote
1
answer
119
views
Objective C Path
I am looking for some help on what would be the best approach to create a path from one point in a grid to the other side.
Imagine a grid of 5 x 5, where at (0,1) there is a light source pointing ...
1
vote
1
answer
571
views
SpriteKit and Swift or Objective-C [closed]
As a newbie to iOS programming, I'm wondering which of these would be more conducive to the type of game I want to program. I've been tasked to program an iOS game for my company. They asked me to do ...
5
votes
2
answers
2k
views
How to play sound effects on iOS?
I have a game that plays sounds when some events occur.
Currently, I am using AVAudioPlayer for the purpose of playing the sound. But just the bare ...
1
vote
0
answers
48
views
Paradigm for storing user data for iOS
Disclaimer: I'm not well versed in Game Dev best practices so this may be a trivial question.
I'm developing an iPhone game in which I have to store a user profile containing such information as ...
0
votes
2
answers
594
views
Tetris implementing rotation
I am currently at the last stage of the Tetris Clone using SDL library, the only thing left is rotation. For each piece I have a separate class, and in order to move the pieces down I use a method:
<...
2
votes
1
answer
288
views
Making Bigger Touch Space in Node Using SpriteKit And Objective-C
I am trying to make simple game, but I have a problem. The node is too small. On iPhones with smaller screen size, the finger can't move it. On iPad and on simulator, however, the node can be moved ...
1
vote
1
answer
648
views
How can I describe a square in OpenGL ES 2.0?
I need to draw a Tic-Tac-Toe board in Xcode using OpenGL ES 2.0. I am new to graphics programming and can't find good information on drawing a square in opengl es in iOS. I looked at Ray's tutorials, ...
3
votes
3
answers
2k
views
How to set up a game loop for a project targeting iOS?
I'm a fellow game programmer who's done many game engines in Game Maker 8.1, Visual Studio XNA and MonoGame with C#, and one in Java Android with Eclipse. I'm very used to C# and love it plus the VS ...
1
vote
0
answers
465
views
What is Sprite Kit capable of? [closed]
I am messing around with Game Maker in my free time. I learned some Java at school but never really understood the object oriented principles. When I got to know Game Maker I was surprised that game ...
1
vote
0
answers
85
views
SpriteKit Obj-C – How to add a force on a node a certain distance according to screen size
I have an SKSpriteNode that I'm trying to throw up to a certain point on the screen. I've tried applying an impulse and/or force according to the screen size, but that has strange results. I've also ...
3
votes
1
answer
448
views
Objective-C SpriteKit – How to make a circle of buttons [closed]
I have some code in a project already, but I'd like to change it up a bit. Currently, my code creates an empty node called _buttonLayer and then create some buttons ...
2
votes
0
answers
69
views
Field of vision - Objective-c
Here's where I'm at.
Here's where I want to be
Here's how it's drawn
...
3
votes
1
answer
372
views
How to calculate final force vector for the SKSpriteNode
I am creating space game which has an effect similar to black hole's gravitational effect. Wherever the spaceship is going, the black hole will attract it, summing up all the vectors together.
I know ...
1
vote
1
answer
214
views
How to write a custom map canvas and project coordinates on it? [closed]
I am writing a game with Objective C ( xcode ) and I need to use the users location service to mark their position on a map but since I need to create my own map component, I am not able to use the ...