# Tag Info

2

This tutorial from Ray covers preparation of the OpenGL render pipeline and the setup required to describe a square. It's about halfway down. Specifically, to draw a square you'll want to draw two triangles. Ray's code organizes them like this: That's four vertices and six indices (two sets of three): Vector2 vertices[] = { Vector2(1, -1), Vector2(1, ...

2

For a 2D puzzle game for iPhone and iPad, SpriteKit would be the easiest way to do this. SpriteKit is made especially for developing 2D games. You don't have to bother creating a scene graph, how to draw images to the screen or how to create a game loop. It is already there, ready for you to use it. Start with creating a new project from the Game template ...

2

First you need to know what is an ellipsoid and why we use them. The earth is spherical and to be exact it can be approximated using an ellipsoid. Location Service and all GPS system that work world wide, must use an ellipsoid that fits the best way the earth, Why we need an ellipsoid? because we need a mathematical model to do the computations. for ...

1

You have two solutions: 1 - Set scale of your gamepad: self.gamepad.scale = 0.5f This will make all the gamepad look smaller (the main circle and the direction sprites, as they are child of the main circle). 2 - Create a init method with a size, and calculate there the size of your childs: -(id)initWithJoystickWithSize:(CGSize) size andImage:(NSString ...

1

1- Well, I have not a huge experience in IOS native development. But if you want it in environment like other Game Engines then I would recommend you to use SpriteKit. You can get start from this tutorial. 2- If you want to set Game Loop in normal Objective-C environment, you can set NSTimer with custom frequency like, NSTimer myTimer =[NSTimer ...

1

to simulate a black hole, I suggest to use SKFieldNode and vortexField(), adjust its strength and falloff property (default is 2). Setting a big number for strength will makes a big perpendicular force which simulates an angular force too (tangant to its imaginary orbital path around the black hole). And let the physics handle the rest, just dont touch ...

Only top voted, non community-wiki answers of a minimum length are eligible