Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a snap to grid function for tangram puzzle #114

Open
PopeSpaceous opened this issue Oct 31, 2018 · 2 comments
Open

Add a snap to grid function for tangram puzzle #114

PopeSpaceous opened this issue Oct 31, 2018 · 2 comments

Comments

@PopeSpaceous
Copy link
Owner

Currently the tangram puzzle has a wonky snap to grid.
When it uploads a tangram from the file (grey tangram) it sometimes has gaps in between.
The user's tangrams (coloured ones) don't snap exactly to the grid the same way and doesn't line up.

@jespirit
Copy link
Contributor

jespirit commented Nov 4, 2018

Just tried the first level on Unity WebGL and I see what you mean. I'll take a look at the code but no promises though.

@PopeSpaceous
Copy link
Owner Author

PopeSpaceous commented Nov 4, 2018

@jespirit the Unity WebGl is not a great example, try the game out either through the release build (if you have windows) or by pulling the repo and trying it in unity.
The Tangrams have a function to read pre-made coordinates from a file, so they would normally be arranged.
But feel free to take a look. Here's a great example of the snap to grid function working. http://wiebke-koepp.de/
Let me know if you need any help understanding the code, as I was the one who wrote it.

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

No branches or pull requests

2 participants