My goal was to create a hexagon based game. In the end I completed this small mental exercise game with a highscore system (thanks to Gamejolts’ API), a hint system and over 100.000 levels.
One Hundred Thousand Levels?! Well, yes. This game design allowed me to just run some traversing algorithm over my hexagon grid data structure and get a variety of possible paths from a start point to an end point. I saved those as Scriptable Objects in Unity and load them in at runtime to get a random data set for grid dimensions and the path.
I also experimented with procedural mesh generation in Unity and after some trouble it worked pretty well. The game generates its hexagon-meshes procedurally with options to hexagon size, columns and rows. An important source of mathematical background was http://www.redblobgames.com/grids/hexagons/
Overall it was a great weekend with more spare time than I thought. In the end, I put around 15 hours in this project (lots were wasted in music and graphics, that I didn’t use in the end. I am horrible in those departments).
Other sources I used: iTween (free on the asset store), UnityVS (free Visual Studio Plugin for Unity), GaneJoltAPI for Unity (free), Unity Scripting Docs.
Software I used: Unity 4.6 + VS2013; Pyxel; Paint.net; SFXR; Audacity
I’d love to hear your feedback.
0 comments