Day 28 Game 28: 30 games in 30 days using Grids
This is what Grids did for us today. What can Grids do for you?
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.