14
votes
Accepted
Why does Unity let you install iOS Build Support on Windows?
As far as i know when you build for IOS on windows it will generate an Xcode project that you then need to build on mac.
As you can't make IOS bundles on windows the only thing you can do is to make ...
14
votes
Can you show rng code running in real time in a game?
Yes, you can. There are already online platforms that are doing exactly that, by providing you the hash of the online secret key that is used as the seed for the random generation. Same seed = same ...
11
votes
Train-like movement in a 2D game
I'm not used to Cocos2D engine, but I can suggest this solution for you to apply to your game.
Naive implementation
The simplest way to implement a train wagon can be making an object which follows a ...
8
votes
Accepted
How do I pixelate a scene with SceneKit and Metal, in Swift?
I don't think this is going to be quite as easy as you'd like, that said you should be able to copy/paste the code below to get something going.
There might be a better way to approach this, but as I ...
6
votes
Cross-platform C++/OpenGL ES development (iOS/Android)
You may find my answer to a similar question here to be helpful.
You may also find it helpful to look into the source code of other solutions. The Godot Engine for example is a cross platform open ...
6
votes
Should I patent game before putting it on Apple App Store?
You can't patent a game. You might pattern a particular algorithm but it's unlikely to be of benefit to you to do so because of a couple reasons.
Patents are highly specific. I was worried I was ...
4
votes
Android game to iOS, go with an engine?
There is no simple way to convert your java code into Unity, unfortunately.
You are going to have to convert the entire code base into either C# or Javascript. Even the way you do your scenes are ...
4
votes
How do I know when the app is launched, loses focus and gets focus again on mobile?
The following snippet calls EnterApplication() and ExitApplication(), for you to implement yourself. It works in Editor, on Android, and on iOS, consistently. The methods are called when the ...
3
votes
How do I create an in-app update for a mobile game?
As Ophir Prusak points out, Apple does not allow downloading code to your app.
So one possibility is that you could make your game logic and behavior entirely data-driven. Then all you do is download ...

Almo♦
- 6,678
3
votes
Accepted
How to implement 'Fog of War' in SpriteKit or Cocos2D?
One option is to overlay a texture that has a blend mode of Multiply set to it over your tiles. The overlay texture would be almost black (dark shades of grey) all around, except for the area you want ...
3
votes
Pathfinding: longest route along tiles of same type
If I am not mistaken these types of problems are usually solved by backtracking family of algorithms.
I would use an algorithm similar to DFS: recursively search the solutions tree and whenever leaf ...
3
votes
Accepted
How can I play user-provided music stored on the phone inside my game?
It is possible to do so. Given a directory, unity's WWW class will be able to obtain the file using the URL. You can then create a clip with that file and pass it to the audio source.
Do note that ...
3
votes
Is it possible to use Metal and SceneKit at the same time?
Yup! As of iOS 9, you can set a SceneKit SCNView to use a Metal renderer on devices that support it by initializing it with the SCNPreferredRenderingAPIKey key in ...
3
votes
Accepted
How to determine contact bodies when multiple bodies overlap and a third makes contact with both at the same time
I'm not really a fan of this :
...
3
votes
iOS build size is too large in Unity
There is a unity guide for general optimisation on the unity website.
To summarize it quickly (read the article):
Reduce texture sizes (You can have specific settings Just for IOS)
Compress meshes ...
3
votes
Accepted
Android game to iOS, go with an engine?
Libgdx is a free game library that supports java and can be deployed to Android and iOS. You will definitely be able to use a lot of your existing code and, depending on how you implemented your ...
3
votes
How can I create a "wireframe" texture for a sphere in SceneKit?
Try setting the material fillMode to .lines:
...
3
votes
Accepted
Libgdx: How to replace texture with shaperenderer?
To draw Shapes over sprites and textures:
Make a shape renderer
ShapeRenderer shapeRenderer = new ShapeRenderer();
Define your shape(s)
...
3
votes
Accepted
In iOS, where/how to do a back button?
The standard practice is to have a button somewhere onscreen to do this. That's because it is obvious, clear and present whenever the user decides they need to pause.
While the swipe / gesture is a ...
3
votes
Accepted
GL_CLAMP_TO_BORDER - OpenGL ES 3
GL_CLAMP_TO_BORDER became legal in GL ES 3.2 (link to specification), but may otherwise be available by one (or more) of the following extensions:
GL_NV_texture_border_clamp
...
3
votes
Why is Unity 5.6 displaying launch image wrong on iOS?
There is a bug in 5.6 which causes transparency to not be imported. Install the newest patch release. Then reimport the affected file(s). Then try the build.
3
votes
Accepted
Get the up vector of the camera in ARKit
In a 4x4 transformation matrix, all directions are contained:
First row of matrix contains the x-axis.
Second row of the matrix contains the y-axis.
Third row of the matrix contains the z-axis.
...
3
votes
Accepted
Calculating the difference between two numbers using exponential growth
To put these into a formula, it seems that you want something that varies with the distance from the boundary, so first calculate that parameter (I'll call it dx ...
3
votes
Accepted
How do I access device camera in GameMaker Studio 1.4?
GameMaker doesn't have native support for device cameras, that's the reason you didn't find anything about it in the docs.
On the other hand, you can try to access the webcam on desktop devices using ...
3
votes
How can I store in-game money so that nobody can manipulate the amount?
What I do is store the data in an obscured and verifiable fashion in memory and on disk, only decoding it when necessary. As mentioned in the comments, this will not prevent alteration, but it will ...
3
votes
Is Apple Game Center Multiplayer Online?
So, its a little weird, but...
I used it once a number of years ago using Prime31's Game Center plugin. What it does is facilitate two (or more) copies of the game communicating with each other in a ...
3
votes
Accepted
HIGH energy consumption in Empty Scene Unity iOS
I am constantly updating this answer, I will remove this message when I have stopped.
There is no magic bullet that will make it work right out of the box. It's a series of steps required to achieve ...
3
votes
Is an iOS development license with Unity free?
You can use Unity personal tu publish a game on every platform for free but if you start making a revenue up to $100k per year you need to pay an annual plan, which starts at $40 per month.
Here you ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ios × 698unity × 138
android × 117
cocos2d-iphone × 81
iphone × 67
objective-c × 63
spritekit × 54
opengl-es × 49
cocos2d × 41
xcode × 35
c# × 33
swift × 32
opengl-es2 × 31
mobile × 26
game-center × 24
3d × 22
physics × 19
collision-detection × 18
box2d × 18
appstore × 18
ipad × 18
2d × 17
scenekit × 16
opengl × 15
libgdx × 15