Project realised during a hackathon on a private server on an Escape Game theme.
Procedure for creating a new enigma
- First step >>> create a folder in the 'modules' folder with a shortcut name of your enigma (use this shortcut name for the continuation of the procedure).
In this folder create copy 'template.html' which is located in the '_template' folder of the 'modules' folder.
This file is a template modal where the enigma will appear.
Change 'template' with the shortcut name of your enigma in the 'id' of the first div :
For the button, change also 'template' with the shortcut name of your enigma in the 'data-dismiss' attribute and change 'template' with the shortcut name of your enigma in the parameters of the 'closeModal' function :
<div id="template-dialog" class="modal" role="dialog" aria-labelledby="dialog-title" aria-describedby="dialog-desc" aria-modal="true" aria-hidden="true" tabindex="-1"> ```
<button type="button" aria-label="Fermer" title="Fermer cette fenêtre modale" data-dismiss="template-dialog" onclick="closeModal('template-dialog', 'template-enigma')">X</button>
- Second step >>> duplicate the button to call modal :
Change 'template' in the 'aria-controls' and 'class' attributes to name of your enigma.
<button aria-haspopup="dialog" aria-controls="template-dialog" class="template-enigma">Modal Enigma</button>
- Third step >>> duplicate the call to include an html file in the "index.html" page :
Change the path to the html file of your enigma. Change 'template' in 'id' attributes to name of your enigma.
<div w3-include-html="./modules/_template/template.html" id="template-enigma" class="enigma"></div>
- Let's code your enigma in the div with the id 'myEnigma'
Monk space => cheese and beer forever. Unlock the power of the secret recipe!
- Indices from the name of the escape game
- Multiple buttons to activate => multiple possibilities of sequences => activate different enigmas => change something on the page (new/show div)
- Unlock locks picture with each resolved enigmas
- Different portraits in a gallery, like a "Who I am?", find our target?
- Principe : TODO
- Resolving it unlock: TODO
- Principe : TODO
- Resolving it unlock: TODO
-
Principe : Resolve a Zebra Puzzle /Einstein Riddle
- monks: A - B - C (temporary names)
- types of beer: fruity - blond - bruin
- beer names: The Perfect - The Oldest - The One
- 3 secret ingredients: ginger - chocolate - curry
- The chocolate beer and the fruity one were not created by B
- The Perfect isn't a blond beer
- C loves curry
- A is the first one the have brew a beer in the monastery
- The One uses Chocolate
- A - Blond - Oldest - Choco
- B - Bruin - Perfect - Ginger
- C - Fruity - One - Curry
-
Resolving it unlock: TODO