Haunted Witch House
Unravel dark secrets in the witch’s lair to discover a missing girl’s fate.
Technical Breakdown
The Problem
Puzzle Solution
Music box puzzle with 'chambers' that can be swapped. Answer is revealed by context scratch markings showing order.
The Solution
Chamber Index
The player presses A and D to change the index, looping around if needed. The previous chamber is unhighlighted, and the new one is highlighted.
Selection Index
Selecting a chamber saves its index and hides it. A dummy chamber then copies its appearance and material, mimicking the action of pulling it out and moving it.
Index Swapping
Changing index moves the dummy chamber. Selecting again swaps the dummy chamber with the current chamber.
The Problem
Inertia Movement
A Swapping Tile puzzle of a painting. The pieces of the puzzle are scattered and must be found.
The Solution
Place Tiles
Place discovered tiles from players inventory
Tile Matrix
Tiles are arranged in a 3x3 matrix. Swapping tiles swaps matrix values.
Solved Matrix
Current tile matrix is compared with solution matrix to determine if solved.
The Problem
Sliding Chamber Puzzle
A puzzle where the player can rotate the three chambers up and down to change the visible symbols.
The Solution
Enum Results
Creation of an enum storing the possible symbol results
Changing Chamber
The kelp mesh has a red gradient from 0 at the bottom to 255 at the top, indicating how much to rotate the vertices for a swaying effect, with the top swaying more than the bottom.
Turning Chamber
The kelp mesh has a green gradient from 0 in the center to 255 at the leaf tips, indicating how much to offset the vertices, making the leaf ends wiggle more than the stem's center.
Solving Puzzle
The kelp shader sways the mesh based on its red vertex color for a waving effect, while the green vertex color adds a swaying and rippling effect to the leaves.