Skip to main content

Questions tagged [swift]

Swift is a multi-paradigm, compiled programming language.

0 votes
1 answer
71 views

I am trying to make a very simple game that allows the user to tap on any "block" in the scene and "pop" it. If the block is blue and touching another blue block then both blocks ...
jforward5's user avatar
1 vote
0 answers
54 views

I'm creating my own flight simulator game from scratch, using Swift and Metal, for learning purposes, and I'm wondering how I can move certain parts of my aircraft model. My model is a free OBJ file ...
Tino's user avatar
  • 11
0 votes
0 answers
72 views

I am trying to implement MSAA in my very simple raytracer. However, when I do, my program gets and insane slowdown. I am working in Metal, and on the Metal HUD, I can see that my frametimes drop from ...
oli2's user avatar
  • 3
0 votes
0 answers
111 views

I have a problem with Box2D when 2 dynamic bodies fall onto a static body located below when their restitution is non-zero. They tunnel through each other instead of a rigid elastic bounce. If I treat ...
Simon Zvara's user avatar
0 votes
2 answers
440 views

In my game project I create the terrain programmatically by creating tiles on a 2D grid as the player moves around the game map. I have it working where I select the current tile and check all 8 ...
peacetype's user avatar
  • 145
0 votes
2 answers
481 views

I've been trying to get rotations with quaternions to work for a while now, and I feel I am very close to it actually working but I just can't get it to work. I do not have a view matrix yet and am ...
CaptainLupa's user avatar
1 vote
1 answer
625 views

I've been working on a Mario Bros clone for the first level, trying to learn how to make games with SpriteKit. I'm trying to use an ...
Frakcool's user avatar
  • 111
0 votes
0 answers
95 views

I'm making a game, and I'm adding a screenshots feature. Currently I save screenshot files to <Home Directory>/Pictures/MyGame/. However, I'm not sure if ...
user avatar
2 votes
1 answer
221 views

I am currently making an iOS Game but I have a small problem. The game is simply a ball which you can control to avoid obstacles and find the food. When the ball hits, e.g. the top or the bottom of an ...
Merlin0216's user avatar
1 vote
0 answers
65 views

I'm creating an open-world RPG like Neverwinter nights. But I’m worried about memory and am afraid if I just populate a huge world with physics based sprite nodes, I won't have any memory for anything ...
Mugs's user avatar
  • 111
0 votes
0 answers
68 views

I'm thinking of building a 2D platformer game similar to Super Mario Bros, but I'm in the planning process and realised I don't really have a good way of storing information about each level – where ...
Frævik's user avatar
1 vote
1 answer
510 views

I'm trying to load a 3d model from Mixamo: // let scene = SCNScene(named: "art.scnassets/ship.scn")! let scene = SCNScene(named: "art.scnassets/Ch45_nonPBR.dae")! ...
Kaizer Sozay's user avatar
1 vote
1 answer
799 views

I have a game and want to reward the user for going on every day. I want to be able to get the true date somehow. I do not want the device date, because the user could just change it and get free ...
Repardeimaj's user avatar
2 votes
1 answer
58 views

I’ve set up a launch image in XCode and it does show up in the simulator, but on the Apple TV it just displays a blurry gray background. The image is the correct size and doesn’t have any transparency....
margusholland's user avatar
0 votes
1 answer
158 views

How would one create score dependent on total time in game? I would like the score to count by 1000+ each second the game is running for. Later I am going to add some coins which will give my total ...
JimmyK1's user avatar

15 30 50 per page
1
2 3 4 5