Skip to content

Puzzle Format

Michael Fuller edited this page Mar 2, 2022 · 17 revisions

id:

The unique identifier for this puzzle. This value has already been set.

x:

The X location on the map for this puzzle. This value has already been set.

y:

The Y location on the map for this puzzle. This value has already been set.

count:

The number of puzzle pieces

type:

The type of puzzle.

Possible values:

  • "LIGHT" - Puzzle changes number of lit lights
  • "SPIN" - Puzzle cubes rotate

camera:

The position of the perspective camera. This is used for "SPIN" puzzles. The camera is always looking at (0,0,0), so this is the position it ### will look from in [x (left/right),y(up/down),z(front/back)] format

ortho:

LIGHT puzzles use an orthographic camera, so this is the width of the camera's view. Ex. 12 will show smaller cubes when compared to 6.

face:

The direction the player was facing.

Possible values:

  • "N" - North
  • "E" - East
  • "S" - South
  • "W" - West

description:

The human description of the puzzle to help the user.

connection:

This is an array of connections. For most puzzles when you hit one cube, one or more other cubes will also change. This is how you define the connections.

For example assume you have a 3 cube puzzle like this [0] <> [1] <> [2]. The connections for this would be 1], [0,2], [1

direction:

The way each cube faces or number of light on. For example if you have three cubes it would look like ["N","E","W"].

Possible values:

  • "N" - North
  • "E" - East
  • "S" - South
  • "W" - West
  • "1" - One Light
  • "2" - Two Lights
  • "3" - Three Lights

position:

The position for each cube in the puzzle. In the following format [[x,y,z],[x,y,z],[x,y,z]...]

Clone this wiki locally