FlapFlap
FlapFlap copied to clipboard
Game is now playable :)
Wait, can you pass the first pipe on your version ? I only tried on iOS 7.1 b5. The whole point of my first commit is to make the game playable. You can ignore the indentation one. I can remake the pull request if you want.
I haven't tried it in 7.1—it all works fine in 7.0.4.
Ahhhh, I tried in 7.1, pipes physic bodies was not right, I can not pass between them.
Have a look: http://cl.ly/TqtB I don't know if it's a bug or a change, anyway I had the same problem before with collision and scaled node.
That's weird, okay I'll install 7.1 and investigate.
Okay, your method is far better than intersect, it's much faster. I'll investigate too, you might see another, better pull request when you wake up :) I'll not change the indention I promise.
Sweet thanks!
Ultra weird: http://cl.ly/TrqM
If you take the bottom pipe out you'll notice that the bounding box of the top pipe is off, but only sometimes... I'm not sure what's causing it, but it seems to be when the image was introduced.
The images is scaled and the physic body is not anymore the same size of the actual scaled image. I tried various things, none works. I don't know if it's a regression with iOS 7.1 or an evolution..
Also yes, with the current version the physics bodies are also a little wider than the node itself. Again, I think the YScaled images a big problem.
I wonder why the physicsBody doesn't stay in sync?
Because of this ? http://stackoverflow.com/questions/19305653/skphysicsbody-and-sknode-setscale
That should be easy enough to implement then. It also explains why the box that bounds the node is sometimes bigger or smaller.
Yeah, it need to be drawn manually.