Skip to content

Game is now playable :) - #3

Open
Dimillian wants to merge 4 commits into
nathanborror:masterfrom
Dimillian:master
Open

Game is now playable :)#3
Dimillian wants to merge 4 commits into
nathanborror:masterfrom
Dimillian:master

Conversation

@Dimillian

Copy link
Copy Markdown

No description provided.

@Dimillian

Copy link
Copy Markdown
Author

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.

@nathanborror

Copy link
Copy Markdown
Owner

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

@Dimillian

Copy link
Copy Markdown
Author

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

@Dimillian

Copy link
Copy Markdown
Author

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.

@nathanborror

Copy link
Copy Markdown
Owner

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

@Dimillian

Copy link
Copy Markdown
Author

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.

@nathanborror

Copy link
Copy Markdown
Owner

Sweet thanks!

@Dimillian

Copy link
Copy Markdown
Author

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

@jbrooksuk

Copy link
Copy Markdown

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.

@Dimillian

Copy link
Copy Markdown
Author

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.

@jbrooksuk

Copy link
Copy Markdown

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

@Dimillian

Copy link
Copy Markdown
Author

@jbrooksuk

Copy link
Copy Markdown

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

@Dimillian

Copy link
Copy Markdown
Author

Yeah, it need to be drawn manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants