Unity Version


So the title give it away, I took a quick break from development to see how this game could be implemented using Unity 5 (results above). For the visual scene, importing all the assets and laying out the gameboard and peg pieces was pretty straightforward in Unity. Colliders were added to the peg pieces to support selection and materials were added to support the various peg colors (currently I'm using the Standard material for everything). After uploading all the skybox textures and creating a material with Skybox/6-sided shader, I was able to update the camera to use a Skybox as the Clear Flags (and added the skybox material to the Lighting Settings).

For the code portion, the porting process was similarly straightforward because I'm going from C++ to C# (and I'm already familiar with C#). The only other interesting code portion was becoming familiar with Unity's math types and finding math functions.

As of right now, the game is fully playable to completion, but what remains to be implemented are undo-redo, user interface text, and audio. Overall, creating the Unity version was a fun exercise and I hope to have this version available on release for folks to try out.

Get Peg Puzzle

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.