Well, today has been great really.
Grant made some more levels (he is extremely sadistic and thinks you should all burn in his level hell)
They are pretty difficult but they incorporate the new mechanics pretty well
New blocks are: the crumble block, you can only roll on it once! then it falls appart (will change gphx soon)
Confusion block, swaps left and right around.
I finally thought of a not so hard way to make the background transition a little better!
Took me a little while to play around and implement it, was pretty cool in the end.
I construct a 4 vert plane in code (because Unity’s plane has 121 verts!)
Construct its vert positions vert UV’s and its normals.
I apply a gradient material :
And then set up the UV coords of the plane so that, if the level starts white, all 4 UV coords are along the bottom,
and if the level starts black the UV coords are along the top.
When you press space to change the colour, the UV’s lerp from one set of vector2’s to the other!
It was seriously god fun implementing and finally getting it working!
Have a play around
(only the flattened version is current)