New answers tagged coordinates
Rotations occur relative to the origin, so you want the camera to be 100 units away already before you rotate it if you want the camera to stay focused on the origin. This image will hopefully make it clear (source page): The view matrix you would use is then (I apply the transformations from right-to-left): view = inverse( rotate(90) * translate(100) * ...
If you are going to just paint the grid, you can check out GridLayout provided by android UI. I have tried for 3X3 grid and used ImageView to set some images. To understand gridLayout , http://developer.android.com/reference/android/widget/GridLayout.html
For a grid system, I haven't yet implemented this code in anything other than an engine, but I'd imagine it would be similar. I implemented the Tetris clone in Unity 5, using this website: http://noobtuts.com/unity/2d-tetris-game The grid section of this webpage might be of some use to you. I will try my best to convert it into java code, and make it ...
Top 50 recent answers are included