FlapFlap icon indicating copy to clipboard operation
FlapFlap copied to clipboard

Game is now playable :)

Open Dimillian opened this issue 11 years ago • 14 comments

Dimillian avatar Feb 10 '14 09:02 Dimillian

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.

Dimillian avatar Feb 11 '14 09:02 Dimillian

I haven't tried it in 7.1—it all works fine in 7.0.4.

nathanborror avatar Feb 11 '14 09:02 nathanborror

Ahhhh, I tried in 7.1, pipes physic bodies was not right, I can not pass between them.

Dimillian avatar Feb 11 '14 09:02 Dimillian

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.

Dimillian avatar Feb 11 '14 09:02 Dimillian

That's weird, okay I'll install 7.1 and investigate.

nathanborror avatar Feb 11 '14 09:02 nathanborror

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.

Dimillian avatar Feb 11 '14 09:02 Dimillian

Sweet thanks!

nathanborror avatar Feb 11 '14 09:02 nathanborror

Ultra weird: http://cl.ly/TrqM

Dimillian avatar Feb 11 '14 09:02 Dimillian

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.

jbrooksuk avatar Feb 12 '14 21:02 jbrooksuk

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.

Dimillian avatar Feb 12 '14 22:02 Dimillian

I wonder why the physicsBody doesn't stay in sync?

jbrooksuk avatar Feb 12 '14 22:02 jbrooksuk

Because of this ? http://stackoverflow.com/questions/19305653/skphysicsbody-and-sknode-setscale

Dimillian avatar Feb 12 '14 22:02 Dimillian

That should be easy enough to implement then. It also explains why the box that bounds the node is sometimes bigger or smaller.

jbrooksuk avatar Feb 12 '14 22:02 jbrooksuk

Yeah, it need to be drawn manually.

Dimillian avatar Feb 12 '14 22:02 Dimillian