[button url=”http://www.gamelogic.co.za/examples/30-games-in-30-days/game28/” size=”large”]CLICK HERE TO PLAY GAME 28[/button]
[divider]
[slogan]This is what Grids did for us today. What can Grids do for you?[/slogan]
So far we have shown how you can use Grids in 3D using 3D tiles and height maps. Today’s game is another 3D example: this time a grid wrapped onto a sphere!
The aim of the game is to move around the inside of the sphere and collect the green cubes, while also avoiding the red cubes. All this while the walls of the sphere rotate.
As with the other examples, the magic lies in the map, which essentially converts rectangular grid coordinates to spherical coordinates (with a fixed radius). To render the sphere, we use simple planes – an effect that works well when viewed from the inside, and allows us to animate the rings separately to give the illusion of a very mechanically dynamic sphere.
[divider]
Click here to check out all 30 games
[divider]
This is a pretty interesting game. I’ve purchased Grids for Unity, and I was wondering how difficult it would be to have the hexes mapped/wrapped on a sphere, but be looking at it from the outside instead of the inside.
Nvm I think this answers my question: http://gamelogic.co.za/grids/features/examples-that-ship-with-grids/tiling-a-sphere-with-hexes/
Yup, this game is an incredible cheat. We were totally surprised by the hex effect (we assumed it would be a brick effect). The link you linked to is another incredible cheat. Let me know if you need help understanding how to use it in an actual game.