To begin my investigation into the creation of puzzles in video game, I decide to try to replicate an instance of a puzzle from the game The Witness (2016).
The puzzles in this game consist of the player drawing a line from a start point to an end point, while satisfying certain constraints along the way. The way these puzzles are presented to the player is in small panels on walls. The player can select puzzle by approaching its panel and can then try and solve it. The selection of a puzzle is used so the player knows all parameters of the puzzles, everything they need in order to solve it, is contained within the small area they can see in front of them and they don't need to consider anything in the environment that is out of their view.
Each panel has a grid/maze on it that allows to player to draw a line to solve to puzzle. I began my design of a level by creating an empty 2D world in Unity. I then drew a 3 by 3 grid with a selectable node at each intersection, producing 9 nodes in total. The player starts at the left side of the screen, so clicking on the left-centre node draws a line from the start on the left to the clicked node, beginning their traversal through the maze. I used an array to store every node that has been selected, including the start, and also a line renderer that sequentially draws lines from node to node. The player can click any adjacent node to continue their traversal. If the player reaches the end node, they are congratulated and the game closes, signalling they have completed the puzzle.
This experimentation with game development has been useful to me because it had been a while before I had made a game so benefitted from refreshing myself on key aspects. I intend to complete further projects in Unreal, but I thought it was imperative that I remember everything I had learned about game design concept in a familiar environment before trying to learn new software.

Comments
Post a Comment