Today was not as productive as I hoped it would be.
I spent the first part of the day fixing up “Cube Dispensers” – these machines that release new cubes (while simultaneously destroying old ones) when you press a button. Because there are six different gravity fields in the game, I ended up having to do everything six times. At this point, I’ve abstracted the code enough so that level elements are pretty modular and can switch pretty gravities easily, but it’s still not super optimal…
Another thing I worked on is “Color Change Beams” – these are beams of light that allow you to change the color of a cube, and therefore the specific gravity field it belongs to. I wanted to create a sweet transition effect where the new material would slowly fade in over the old material. Alas, writing the shader proved a little too complicated, and I settled for a simple instant-change color effect. I will come back to it in a few days.


