CubeSpawn
- Mark Kavanagh

- Mar 8, 2018
- 1 min read
This project involved using a 4x4 grid of pixels varying in colour and displaying them as objects in a scene in Unity 5. Once they were in the scene and a certain button has been pressed, the objects would perform an action of some kind. It was a very simple little project, but it helped in learning the basic rules of programming and how they affect objects in Unity. Below are some still images from the project with a brief explanation of each.

Original 4x4 grid of pixels to be instantiated into Unity.

Once the game began running. The black pixels were used to display a void, but the other colours had their own objects in the scene.

Isometric view of the game scene with the platform of black cubes beneath.

Once the button to perform their functions has been pressed. The green cubes are rotating forwards, while the white cubes are rotating backwards. And the red cubes are moving upwards, while the blue cubes are moving downwards through the platform.

Isometric view of the function running.

Function button being pressed a second time. The coloured cubes return to their original positions, with the magnitude of the forces acting on each being increased twofold, before the function runs again. The blue cubes have struck the platform with such force that it begins to slowly break apart. Because the platform cubes do not have a function to run, they continue to slowly drift.

Isometric view of the second function being run. This is a clearer view of the platform being forced away from its starting position.



Comments