Search Instagram Twitter Facebook Spotify Grid Tag Date Folder Chat Pencil

Cube Dispensers and Color Change Beams

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…

RelativityGame_Cube_dispensers

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.

Relativity_Game_Screenshot_color_change_beam_01

Relativity_Game_Screenshot_color_change_beam_01

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.